jorgex-stack 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/PRD.md +297 -297
  2. package/README.md +56 -58
  3. package/dist/cli.js +7 -2
  4. package/package.json +1 -1
  5. package/stack/agents/orchestrator.md +192 -192
  6. package/stack/agents/tester.md +71 -71
  7. package/stack/commands/xreview.md +80 -80
  8. package/stack/hooks/hooks.json +18 -18
  9. package/stack/scripts/post-pr-review.cjs +156 -156
  10. package/stack/skills/diagnose/SKILL.md +117 -117
  11. package/stack/skills/diagnose/scripts/hitl-loop.template.sh +41 -41
  12. package/stack/skills/find-skills/SKILL.md +133 -133
  13. package/stack/skills/mcp-builder/LICENSE.txt +201 -201
  14. package/stack/skills/mcp-builder/SKILL.md +236 -236
  15. package/stack/skills/mcp-builder/reference/evaluation.md +601 -601
  16. package/stack/skills/mcp-builder/reference/mcp_best_practices.md +249 -249
  17. package/stack/skills/mcp-builder/reference/node_mcp_server.md +969 -969
  18. package/stack/skills/mcp-builder/reference/python_mcp_server.md +718 -718
  19. package/stack/skills/mcp-builder/scripts/connections.py +151 -151
  20. package/stack/skills/mcp-builder/scripts/evaluation.py +373 -373
  21. package/stack/skills/mcp-builder/scripts/example_evaluation.xml +22 -22
  22. package/stack/skills/mcp-builder/scripts/requirements.txt +2 -2
  23. package/stack/skills/obsidian-cli/SKILL.md +106 -106
  24. package/stack/skills/obsidian-markdown/SKILL.md +196 -196
  25. package/stack/skills/obsidian-markdown/references/CALLOUTS.md +58 -58
  26. package/stack/skills/obsidian-markdown/references/EMBEDS.md +63 -63
  27. package/stack/skills/obsidian-markdown/references/PROPERTIES.md +61 -61
  28. package/stack/skills/react-doctor/SKILL.md +19 -19
  29. package/stack/skills/skill-creator/LICENSE.txt +201 -201
  30. package/stack/skills/skill-creator/agents/analyzer.md +274 -274
  31. package/stack/skills/skill-creator/agents/comparator.md +202 -202
  32. package/stack/skills/skill-creator/agents/grader.md +223 -223
  33. package/stack/skills/skill-creator/assets/eval_review.html +146 -146
  34. package/stack/skills/skill-creator/eval-viewer/generate_review.py +471 -471
  35. package/stack/skills/skill-creator/eval-viewer/viewer.html +1325 -1325
  36. package/stack/skills/skill-creator/references/schemas.md +430 -430
  37. package/stack/skills/skill-creator/scripts/aggregate_benchmark.py +401 -401
  38. package/stack/skills/skill-creator/scripts/generate_report.py +326 -326
  39. package/stack/skills/skill-creator/scripts/improve_description.py +248 -248
  40. package/stack/skills/skill-creator/scripts/package_skill.py +136 -136
  41. package/stack/skills/skill-creator/scripts/quick_validate.py +102 -102
  42. package/stack/skills/skill-creator/scripts/run_eval.py +310 -310
  43. package/stack/skills/skill-creator/scripts/run_loop.py +332 -332
  44. package/stack/skills/skill-creator/scripts/utils.py +47 -47
  45. package/stack/skills/supabase/SKILL.md +135 -135
  46. package/stack/skills/supabase/assets/feedback-issue-template.md +17 -17
  47. package/stack/skills/supabase/references/skill-feedback.md +17 -17
  48. package/stack/skills/supabase-postgres-best-practices/SKILL.md +64 -64
  49. package/stack/skills/supabase-postgres-best-practices/references/_contributing.md +170 -170
  50. package/stack/skills/supabase-postgres-best-practices/references/_sections.md +39 -39
  51. package/stack/skills/supabase-postgres-best-practices/references/_template.md +34 -34
  52. package/stack/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -55
  53. package/stack/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -49
  54. package/stack/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -46
  55. package/stack/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -44
  56. package/stack/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -41
  57. package/stack/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -46
  58. package/stack/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -54
  59. package/stack/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -53
  60. package/stack/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -50
  61. package/stack/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -50
  62. package/stack/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -56
  63. package/stack/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -68
  64. package/stack/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -50
  65. package/stack/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -54
  66. package/stack/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -45
  67. package/stack/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -55
  68. package/stack/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -55
  69. package/stack/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -44
  70. package/stack/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -40
  71. package/stack/skills/supabase-postgres-best-practices/references/query-index-types.md +48 -48
  72. package/stack/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -43
  73. package/stack/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -45
  74. package/stack/skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -80
  75. package/stack/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -46
  76. package/stack/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -59
  77. package/stack/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -55
  78. package/stack/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -55
  79. package/stack/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -61
  80. package/stack/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -54
  81. package/stack/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -50
  82. package/stack/skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -63
  83. package/stack/skills/tdd/SKILL.md +109 -109
  84. package/stack/skills/tdd/deep-modules.md +33 -33
  85. package/stack/skills/tdd/interface-design.md +31 -31
  86. package/stack/skills/tdd/mocking.md +59 -59
  87. package/stack/skills/tdd/refactoring.md +10 -10
  88. package/stack/skills/tdd/tests.md +61 -61
  89. package/stack/skills/to-issues/SKILL.md +83 -83
  90. package/stack/skills/to-prd/SKILL.md +72 -72
  91. package/upstreams.json +96 -96
@@ -1,136 +1,136 @@
1
- #!/usr/bin/env python3
2
- """
3
- Skill Packager - Creates a distributable .skill file of a skill folder
4
-
5
- Usage:
6
- python utils/package_skill.py <path/to/skill-folder> [output-directory]
7
-
8
- Example:
9
- python utils/package_skill.py skills/public/my-skill
10
- python utils/package_skill.py skills/public/my-skill ./dist
11
- """
12
-
13
- import fnmatch
14
- import sys
15
- import zipfile
16
- from pathlib import Path
17
- from scripts.quick_validate import validate_skill
18
-
19
- # Patterns to exclude when packaging skills.
20
- EXCLUDE_DIRS = {"__pycache__", "node_modules"}
21
- EXCLUDE_GLOBS = {"*.pyc"}
22
- EXCLUDE_FILES = {".DS_Store"}
23
- # Directories excluded only at the skill root (not when nested deeper).
24
- ROOT_EXCLUDE_DIRS = {"evals"}
25
-
26
-
27
- def should_exclude(rel_path: Path) -> bool:
28
- """Check if a path should be excluded from packaging."""
29
- parts = rel_path.parts
30
- if any(part in EXCLUDE_DIRS for part in parts):
31
- return True
32
- # rel_path is relative to skill_path.parent, so parts[0] is the skill
33
- # folder name and parts[1] (if present) is the first subdir.
34
- if len(parts) > 1 and parts[1] in ROOT_EXCLUDE_DIRS:
35
- return True
36
- name = rel_path.name
37
- if name in EXCLUDE_FILES:
38
- return True
39
- return any(fnmatch.fnmatch(name, pat) for pat in EXCLUDE_GLOBS)
40
-
41
-
42
- def package_skill(skill_path, output_dir=None):
43
- """
44
- Package a skill folder into a .skill file.
45
-
46
- Args:
47
- skill_path: Path to the skill folder
48
- output_dir: Optional output directory for the .skill file (defaults to current directory)
49
-
50
- Returns:
51
- Path to the created .skill file, or None if error
52
- """
53
- skill_path = Path(skill_path).resolve()
54
-
55
- # Validate skill folder exists
56
- if not skill_path.exists():
57
- print(f"❌ Error: Skill folder not found: {skill_path}")
58
- return None
59
-
60
- if not skill_path.is_dir():
61
- print(f"❌ Error: Path is not a directory: {skill_path}")
62
- return None
63
-
64
- # Validate SKILL.md exists
65
- skill_md = skill_path / "SKILL.md"
66
- if not skill_md.exists():
67
- print(f"❌ Error: SKILL.md not found in {skill_path}")
68
- return None
69
-
70
- # Run validation before packaging
71
- print("🔍 Validating skill...")
72
- valid, message = validate_skill(skill_path)
73
- if not valid:
74
- print(f"❌ Validation failed: {message}")
75
- print(" Please fix the validation errors before packaging.")
76
- return None
77
- print(f"✅ {message}\n")
78
-
79
- # Determine output location
80
- skill_name = skill_path.name
81
- if output_dir:
82
- output_path = Path(output_dir).resolve()
83
- output_path.mkdir(parents=True, exist_ok=True)
84
- else:
85
- output_path = Path.cwd()
86
-
87
- skill_filename = output_path / f"{skill_name}.skill"
88
-
89
- # Create the .skill file (zip format)
90
- try:
91
- with zipfile.ZipFile(skill_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:
92
- # Walk through the skill directory, excluding build artifacts
93
- for file_path in skill_path.rglob('*'):
94
- if not file_path.is_file():
95
- continue
96
- arcname = file_path.relative_to(skill_path.parent)
97
- if should_exclude(arcname):
98
- print(f" Skipped: {arcname}")
99
- continue
100
- zipf.write(file_path, arcname)
101
- print(f" Added: {arcname}")
102
-
103
- print(f"\n✅ Successfully packaged skill to: {skill_filename}")
104
- return skill_filename
105
-
106
- except Exception as e:
107
- print(f"❌ Error creating .skill file: {e}")
108
- return None
109
-
110
-
111
- def main():
112
- if len(sys.argv) < 2:
113
- print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
114
- print("\nExample:")
115
- print(" python utils/package_skill.py skills/public/my-skill")
116
- print(" python utils/package_skill.py skills/public/my-skill ./dist")
117
- sys.exit(1)
118
-
119
- skill_path = sys.argv[1]
120
- output_dir = sys.argv[2] if len(sys.argv) > 2 else None
121
-
122
- print(f"📦 Packaging skill: {skill_path}")
123
- if output_dir:
124
- print(f" Output directory: {output_dir}")
125
- print()
126
-
127
- result = package_skill(skill_path, output_dir)
128
-
129
- if result:
130
- sys.exit(0)
131
- else:
132
- sys.exit(1)
133
-
134
-
135
- if __name__ == "__main__":
136
- main()
1
+ #!/usr/bin/env python3
2
+ """
3
+ Skill Packager - Creates a distributable .skill file of a skill folder
4
+
5
+ Usage:
6
+ python utils/package_skill.py <path/to/skill-folder> [output-directory]
7
+
8
+ Example:
9
+ python utils/package_skill.py skills/public/my-skill
10
+ python utils/package_skill.py skills/public/my-skill ./dist
11
+ """
12
+
13
+ import fnmatch
14
+ import sys
15
+ import zipfile
16
+ from pathlib import Path
17
+ from scripts.quick_validate import validate_skill
18
+
19
+ # Patterns to exclude when packaging skills.
20
+ EXCLUDE_DIRS = {"__pycache__", "node_modules"}
21
+ EXCLUDE_GLOBS = {"*.pyc"}
22
+ EXCLUDE_FILES = {".DS_Store"}
23
+ # Directories excluded only at the skill root (not when nested deeper).
24
+ ROOT_EXCLUDE_DIRS = {"evals"}
25
+
26
+
27
+ def should_exclude(rel_path: Path) -> bool:
28
+ """Check if a path should be excluded from packaging."""
29
+ parts = rel_path.parts
30
+ if any(part in EXCLUDE_DIRS for part in parts):
31
+ return True
32
+ # rel_path is relative to skill_path.parent, so parts[0] is the skill
33
+ # folder name and parts[1] (if present) is the first subdir.
34
+ if len(parts) > 1 and parts[1] in ROOT_EXCLUDE_DIRS:
35
+ return True
36
+ name = rel_path.name
37
+ if name in EXCLUDE_FILES:
38
+ return True
39
+ return any(fnmatch.fnmatch(name, pat) for pat in EXCLUDE_GLOBS)
40
+
41
+
42
+ def package_skill(skill_path, output_dir=None):
43
+ """
44
+ Package a skill folder into a .skill file.
45
+
46
+ Args:
47
+ skill_path: Path to the skill folder
48
+ output_dir: Optional output directory for the .skill file (defaults to current directory)
49
+
50
+ Returns:
51
+ Path to the created .skill file, or None if error
52
+ """
53
+ skill_path = Path(skill_path).resolve()
54
+
55
+ # Validate skill folder exists
56
+ if not skill_path.exists():
57
+ print(f"❌ Error: Skill folder not found: {skill_path}")
58
+ return None
59
+
60
+ if not skill_path.is_dir():
61
+ print(f"❌ Error: Path is not a directory: {skill_path}")
62
+ return None
63
+
64
+ # Validate SKILL.md exists
65
+ skill_md = skill_path / "SKILL.md"
66
+ if not skill_md.exists():
67
+ print(f"❌ Error: SKILL.md not found in {skill_path}")
68
+ return None
69
+
70
+ # Run validation before packaging
71
+ print("🔍 Validating skill...")
72
+ valid, message = validate_skill(skill_path)
73
+ if not valid:
74
+ print(f"❌ Validation failed: {message}")
75
+ print(" Please fix the validation errors before packaging.")
76
+ return None
77
+ print(f"✅ {message}\n")
78
+
79
+ # Determine output location
80
+ skill_name = skill_path.name
81
+ if output_dir:
82
+ output_path = Path(output_dir).resolve()
83
+ output_path.mkdir(parents=True, exist_ok=True)
84
+ else:
85
+ output_path = Path.cwd()
86
+
87
+ skill_filename = output_path / f"{skill_name}.skill"
88
+
89
+ # Create the .skill file (zip format)
90
+ try:
91
+ with zipfile.ZipFile(skill_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:
92
+ # Walk through the skill directory, excluding build artifacts
93
+ for file_path in skill_path.rglob('*'):
94
+ if not file_path.is_file():
95
+ continue
96
+ arcname = file_path.relative_to(skill_path.parent)
97
+ if should_exclude(arcname):
98
+ print(f" Skipped: {arcname}")
99
+ continue
100
+ zipf.write(file_path, arcname)
101
+ print(f" Added: {arcname}")
102
+
103
+ print(f"\n✅ Successfully packaged skill to: {skill_filename}")
104
+ return skill_filename
105
+
106
+ except Exception as e:
107
+ print(f"❌ Error creating .skill file: {e}")
108
+ return None
109
+
110
+
111
+ def main():
112
+ if len(sys.argv) < 2:
113
+ print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
114
+ print("\nExample:")
115
+ print(" python utils/package_skill.py skills/public/my-skill")
116
+ print(" python utils/package_skill.py skills/public/my-skill ./dist")
117
+ sys.exit(1)
118
+
119
+ skill_path = sys.argv[1]
120
+ output_dir = sys.argv[2] if len(sys.argv) > 2 else None
121
+
122
+ print(f"📦 Packaging skill: {skill_path}")
123
+ if output_dir:
124
+ print(f" Output directory: {output_dir}")
125
+ print()
126
+
127
+ result = package_skill(skill_path, output_dir)
128
+
129
+ if result:
130
+ sys.exit(0)
131
+ else:
132
+ sys.exit(1)
133
+
134
+
135
+ if __name__ == "__main__":
136
+ main()
@@ -1,103 +1,103 @@
1
- #!/usr/bin/env python3
2
- """
3
- Quick validation script for skills - minimal version
4
- """
5
-
6
- import sys
7
- import os
8
- import re
9
- import yaml
10
- from pathlib import Path
11
-
12
- def validate_skill(skill_path):
13
- """Basic validation of a skill"""
14
- skill_path = Path(skill_path)
15
-
16
- # Check SKILL.md exists
17
- skill_md = skill_path / 'SKILL.md'
18
- if not skill_md.exists():
19
- return False, "SKILL.md not found"
20
-
21
- # Read and validate frontmatter
22
- content = skill_md.read_text()
23
- if not content.startswith('---'):
24
- return False, "No YAML frontmatter found"
25
-
26
- # Extract frontmatter
27
- match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
28
- if not match:
29
- return False, "Invalid frontmatter format"
30
-
31
- frontmatter_text = match.group(1)
32
-
33
- # Parse YAML frontmatter
34
- try:
35
- frontmatter = yaml.safe_load(frontmatter_text)
36
- if not isinstance(frontmatter, dict):
37
- return False, "Frontmatter must be a YAML dictionary"
38
- except yaml.YAMLError as e:
39
- return False, f"Invalid YAML in frontmatter: {e}"
40
-
41
- # Define allowed properties
42
- ALLOWED_PROPERTIES = {'name', 'description', 'license', 'allowed-tools', 'metadata', 'compatibility'}
43
-
44
- # Check for unexpected properties (excluding nested keys under metadata)
45
- unexpected_keys = set(frontmatter.keys()) - ALLOWED_PROPERTIES
46
- if unexpected_keys:
47
- return False, (
48
- f"Unexpected key(s) in SKILL.md frontmatter: {', '.join(sorted(unexpected_keys))}. "
49
- f"Allowed properties are: {', '.join(sorted(ALLOWED_PROPERTIES))}"
50
- )
51
-
52
- # Check required fields
53
- if 'name' not in frontmatter:
54
- return False, "Missing 'name' in frontmatter"
55
- if 'description' not in frontmatter:
56
- return False, "Missing 'description' in frontmatter"
57
-
58
- # Extract name for validation
59
- name = frontmatter.get('name', '')
60
- if not isinstance(name, str):
61
- return False, f"Name must be a string, got {type(name).__name__}"
62
- name = name.strip()
63
- if name:
64
- # Check naming convention (kebab-case: lowercase with hyphens)
65
- if not re.match(r'^[a-z0-9-]+$', name):
66
- return False, f"Name '{name}' should be kebab-case (lowercase letters, digits, and hyphens only)"
67
- if name.startswith('-') or name.endswith('-') or '--' in name:
68
- return False, f"Name '{name}' cannot start/end with hyphen or contain consecutive hyphens"
69
- # Check name length (max 64 characters per spec)
70
- if len(name) > 64:
71
- return False, f"Name is too long ({len(name)} characters). Maximum is 64 characters."
72
-
73
- # Extract and validate description
74
- description = frontmatter.get('description', '')
75
- if not isinstance(description, str):
76
- return False, f"Description must be a string, got {type(description).__name__}"
77
- description = description.strip()
78
- if description:
79
- # Check for angle brackets
80
- if '<' in description or '>' in description:
81
- return False, "Description cannot contain angle brackets (< or >)"
82
- # Check description length (max 1024 characters per spec)
83
- if len(description) > 1024:
84
- return False, f"Description is too long ({len(description)} characters). Maximum is 1024 characters."
85
-
86
- # Validate compatibility field if present (optional)
87
- compatibility = frontmatter.get('compatibility', '')
88
- if compatibility:
89
- if not isinstance(compatibility, str):
90
- return False, f"Compatibility must be a string, got {type(compatibility).__name__}"
91
- if len(compatibility) > 500:
92
- return False, f"Compatibility is too long ({len(compatibility)} characters). Maximum is 500 characters."
93
-
94
- return True, "Skill is valid!"
95
-
96
- if __name__ == "__main__":
97
- if len(sys.argv) != 2:
98
- print("Usage: python quick_validate.py <skill_directory>")
99
- sys.exit(1)
100
-
101
- valid, message = validate_skill(sys.argv[1])
102
- print(message)
1
+ #!/usr/bin/env python3
2
+ """
3
+ Quick validation script for skills - minimal version
4
+ """
5
+
6
+ import sys
7
+ import os
8
+ import re
9
+ import yaml
10
+ from pathlib import Path
11
+
12
+ def validate_skill(skill_path):
13
+ """Basic validation of a skill"""
14
+ skill_path = Path(skill_path)
15
+
16
+ # Check SKILL.md exists
17
+ skill_md = skill_path / 'SKILL.md'
18
+ if not skill_md.exists():
19
+ return False, "SKILL.md not found"
20
+
21
+ # Read and validate frontmatter
22
+ content = skill_md.read_text()
23
+ if not content.startswith('---'):
24
+ return False, "No YAML frontmatter found"
25
+
26
+ # Extract frontmatter
27
+ match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
28
+ if not match:
29
+ return False, "Invalid frontmatter format"
30
+
31
+ frontmatter_text = match.group(1)
32
+
33
+ # Parse YAML frontmatter
34
+ try:
35
+ frontmatter = yaml.safe_load(frontmatter_text)
36
+ if not isinstance(frontmatter, dict):
37
+ return False, "Frontmatter must be a YAML dictionary"
38
+ except yaml.YAMLError as e:
39
+ return False, f"Invalid YAML in frontmatter: {e}"
40
+
41
+ # Define allowed properties
42
+ ALLOWED_PROPERTIES = {'name', 'description', 'license', 'allowed-tools', 'metadata', 'compatibility'}
43
+
44
+ # Check for unexpected properties (excluding nested keys under metadata)
45
+ unexpected_keys = set(frontmatter.keys()) - ALLOWED_PROPERTIES
46
+ if unexpected_keys:
47
+ return False, (
48
+ f"Unexpected key(s) in SKILL.md frontmatter: {', '.join(sorted(unexpected_keys))}. "
49
+ f"Allowed properties are: {', '.join(sorted(ALLOWED_PROPERTIES))}"
50
+ )
51
+
52
+ # Check required fields
53
+ if 'name' not in frontmatter:
54
+ return False, "Missing 'name' in frontmatter"
55
+ if 'description' not in frontmatter:
56
+ return False, "Missing 'description' in frontmatter"
57
+
58
+ # Extract name for validation
59
+ name = frontmatter.get('name', '')
60
+ if not isinstance(name, str):
61
+ return False, f"Name must be a string, got {type(name).__name__}"
62
+ name = name.strip()
63
+ if name:
64
+ # Check naming convention (kebab-case: lowercase with hyphens)
65
+ if not re.match(r'^[a-z0-9-]+$', name):
66
+ return False, f"Name '{name}' should be kebab-case (lowercase letters, digits, and hyphens only)"
67
+ if name.startswith('-') or name.endswith('-') or '--' in name:
68
+ return False, f"Name '{name}' cannot start/end with hyphen or contain consecutive hyphens"
69
+ # Check name length (max 64 characters per spec)
70
+ if len(name) > 64:
71
+ return False, f"Name is too long ({len(name)} characters). Maximum is 64 characters."
72
+
73
+ # Extract and validate description
74
+ description = frontmatter.get('description', '')
75
+ if not isinstance(description, str):
76
+ return False, f"Description must be a string, got {type(description).__name__}"
77
+ description = description.strip()
78
+ if description:
79
+ # Check for angle brackets
80
+ if '<' in description or '>' in description:
81
+ return False, "Description cannot contain angle brackets (< or >)"
82
+ # Check description length (max 1024 characters per spec)
83
+ if len(description) > 1024:
84
+ return False, f"Description is too long ({len(description)} characters). Maximum is 1024 characters."
85
+
86
+ # Validate compatibility field if present (optional)
87
+ compatibility = frontmatter.get('compatibility', '')
88
+ if compatibility:
89
+ if not isinstance(compatibility, str):
90
+ return False, f"Compatibility must be a string, got {type(compatibility).__name__}"
91
+ if len(compatibility) > 500:
92
+ return False, f"Compatibility is too long ({len(compatibility)} characters). Maximum is 500 characters."
93
+
94
+ return True, "Skill is valid!"
95
+
96
+ if __name__ == "__main__":
97
+ if len(sys.argv) != 2:
98
+ print("Usage: python quick_validate.py <skill_directory>")
99
+ sys.exit(1)
100
+
101
+ valid, message = validate_skill(sys.argv[1])
102
+ print(message)
103
103
  sys.exit(0 if valid else 1)