@rfxlamia/skillkit 1.1.0 → 1.2.0
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.
- package/agents/agents/creative-copywriter.md +212 -0
- package/agents/agents/dario-amodei.md +135 -0
- package/agents/agents/doc-simplifier.md +63 -0
- package/agents/agents/kotlin-pro.md +433 -0
- package/agents/agents/red-team.md +136 -0
- package/agents/agents/sam-altman.md +121 -0
- package/agents/agents/seo-manager.md +184 -0
- package/package.json +1 -1
- package/skills/skillkit-help/SKILL.md +81 -0
- package/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
- package/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skillkit-help/template/SKILL.md +52 -0
- package/skills/skills/adversarial-review/SKILL.md +219 -0
- package/skills/skills/baby-education/SKILL.md +260 -0
- package/skills/skills/baby-education/references/advanced-techniques.md +323 -0
- package/skills/skills/baby-education/references/transformations.md +345 -0
- package/skills/skills/been-there-done-that/SKILL.md +455 -0
- package/skills/skills/been-there-done-that/references/analysis-patterns.md +162 -0
- package/skills/skills/been-there-done-that/references/git-commands.md +132 -0
- package/skills/skills/been-there-done-that/references/tree-insertion-logic.md +145 -0
- package/skills/skills/coolhunter/SKILL.md +270 -0
- package/skills/skills/coolhunter/assets/elicitation-methods.csv +51 -0
- package/skills/skills/coolhunter/knowledge/elicitation-methods.md +312 -0
- package/skills/skills/coolhunter/references/workflow-execution.md +238 -0
- package/skills/skills/coolhunter/workflow-plan-coolhunter.md +232 -0
- package/skills/skills/creative-copywriting/SKILL.md +324 -0
- package/skills/skills/creative-copywriting/databases/README.md +60 -0
- package/skills/skills/creative-copywriting/databases/carousel-structures.csv +16 -0
- package/skills/skills/creative-copywriting/databases/emotional-arcs.csv +11 -0
- package/skills/skills/creative-copywriting/databases/hook-formulas.csv +51 -0
- package/skills/skills/creative-copywriting/databases/power-words.csv +201 -0
- package/skills/skills/creative-copywriting/databases/psychological-triggers.csv +21 -0
- package/skills/skills/creative-copywriting/databases/read-more-patterns.csv +26 -0
- package/skills/skills/creative-copywriting/databases/swipe-triggers.csv +31 -0
- package/skills/skills/creative-copywriting/references/carousel-psychology.md +223 -0
- package/skills/skills/creative-copywriting/references/hook-anatomy.md +169 -0
- package/skills/skills/creative-copywriting/references/power-word-science.md +134 -0
- package/skills/skills/creative-copywriting/references/storytelling-frameworks.md +157 -0
- package/skills/skills/diverse-content-gen/SKILL.md +201 -0
- package/skills/skills/diverse-content-gen/references/advanced-techniques.md +320 -0
- package/skills/skills/diverse-content-gen/references/research-findings.md +379 -0
- package/skills/skills/diverse-content-gen/references/task-workflows.md +241 -0
- package/skills/skills/diverse-content-gen/references/tool-integration.md +419 -0
- package/skills/skills/diverse-content-gen/references/troubleshooting.md +426 -0
- package/skills/skills/diverse-content-gen/references/vs-core-technique.md +240 -0
- package/skills/skills/framework-critical-thinking/SKILL.md +220 -0
- package/skills/skills/framework-critical-thinking/references/bias_detector.md +375 -0
- package/skills/skills/framework-critical-thinking/references/fallback_handler.md +239 -0
- package/skills/skills/framework-critical-thinking/references/memory_curator.md +161 -0
- package/skills/skills/framework-critical-thinking/references/metacognitive_monitor.md +297 -0
- package/skills/skills/framework-critical-thinking/references/producer_critic_orchestrator.md +333 -0
- package/skills/skills/framework-critical-thinking/references/reasoning_router.md +235 -0
- package/skills/skills/framework-critical-thinking/references/reasoning_validator.md +97 -0
- package/skills/skills/framework-critical-thinking/references/reflection_trigger.md +78 -0
- package/skills/skills/framework-critical-thinking/references/self_verification.md +388 -0
- package/skills/skills/framework-critical-thinking/references/uncertainty_quantifier.md +207 -0
- package/skills/skills/framework-initiative/SKILL.md +231 -0
- package/skills/skills/framework-initiative/references/examples.md +150 -0
- package/skills/skills/framework-initiative/references/impact-analysis.md +157 -0
- package/skills/skills/framework-initiative/references/intent-patterns.md +145 -0
- package/skills/skills/framework-initiative/references/star-framework.md +165 -0
- package/skills/skills/humanize-docs/SKILL.md +203 -0
- package/skills/skills/humanize-docs/references/advanced-techniques.md +13 -0
- package/skills/skills/humanize-docs/references/core-transformations.md +368 -0
- package/skills/skills/humanize-docs/references/detection-patterns.md +400 -0
- package/skills/skills/humanize-docs/references/examples-gallery.md +374 -0
- package/skills/skills/imagine/SKILL.md +190 -0
- package/skills/skills/imagine/references/artstyle-corporate-memphis.md +625 -0
- package/skills/skills/imagine/references/artstyle-crewdson-hyperrealism.md +295 -0
- package/skills/skills/imagine/references/artstyle-iphone-social-media.md +426 -0
- package/skills/skills/imagine/references/artstyle-sciencesaru.md +276 -0
- package/skills/skills/pre-deploy-checklist/README.md +26 -0
- package/skills/skills/pre-deploy-checklist/SKILL.md +153 -0
- package/skills/skills/pre-deploy-checklist/references/checklist-categories.md +174 -0
- package/skills/skills/pre-deploy-checklist/references/domain-prompts.md +216 -0
- package/skills/skills/prompt-engineering/SKILL.md +209 -0
- package/skills/skills/prompt-engineering/references/advanced-combinations.md +444 -0
- package/skills/skills/prompt-engineering/references/chain-of-thought.md +140 -0
- package/skills/skills/prompt-engineering/references/decision_matrix.md +220 -0
- package/skills/skills/prompt-engineering/references/few-shot.md +346 -0
- package/skills/skills/prompt-engineering/references/json-format.md +270 -0
- package/skills/skills/prompt-engineering/references/natural-language.md +420 -0
- package/skills/skills/prompt-engineering/references/pitfalls.md +365 -0
- package/skills/skills/prompt-engineering/references/prompt-chaining.md +498 -0
- package/skills/skills/prompt-engineering/references/react.md +108 -0
- package/skills/skills/prompt-engineering/references/self-consistency.md +322 -0
- package/skills/skills/prompt-engineering/references/tree-of-thoughts.md +386 -0
- package/skills/skills/prompt-engineering/references/xml-format.md +220 -0
- package/skills/skills/prompt-engineering/references/yaml-format.md +488 -0
- package/skills/skills/prompt-engineering/references/zero-shot.md +74 -0
- package/skills/skills/quick-spec/SKILL.md +280 -0
- package/skills/skills/quick-spec/assets/tech-spec-template.md +74 -0
- package/skills/skills/quick-spec/references/step-01-understand.md +189 -0
- package/skills/skills/quick-spec/references/step-02-investigate.md +144 -0
- package/skills/skills/quick-spec/references/step-03-generate.md +128 -0
- package/skills/skills/quick-spec/references/step-04-review.md +173 -0
- package/skills/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skills/quick-spec/tests/test_scenarios.md +83 -0
- package/skills/skills/quick-spec/tests/test_skill.py +136 -0
- package/skills/skills/readme-expert/SKILL.md +538 -0
- package/skills/skills/readme-expert/knowledge/INDEX.md +192 -0
- package/skills/skills/readme-expert/knowledge/application/quality-standards.md +470 -0
- package/skills/skills/readme-expert/knowledge/application/script-executor.md +604 -0
- package/skills/skills/readme-expert/knowledge/application/template-library.md +822 -0
- package/skills/skills/readme-expert/knowledge/foundation/codebase-scanner.md +361 -0
- package/skills/skills/readme-expert/knowledge/foundation/validation-checklist.md +481 -0
- package/skills/skills/red-teaming/SKILL.md +321 -0
- package/skills/skills/red-teaming/references/ai-llm-redteam.md +517 -0
- package/skills/skills/red-teaming/references/attack-techniques.md +410 -0
- package/skills/skills/red-teaming/references/cybersecurity-redteam.md +383 -0
- package/skills/skills/red-teaming/references/tools-frameworks.md +446 -0
- package/skills/skills/releasing/.skillkit-mode +1 -0
- package/skills/skills/releasing/SKILL.md +225 -0
- package/skills/skills/releasing/references/version-detection.md +108 -0
- package/skills/skills/screenwriter/SKILL.md +273 -0
- package/skills/skills/screenwriter/references/advanced-techniques.md +216 -0
- package/skills/skills/screenwriter/references/pipeline-integration.md +266 -0
- package/skills/skills/skillkit/.claude/settings.local.json +7 -0
- package/skills/skills/skillkit/.claude-plugin/plugin.json +27 -0
- package/skills/skills/skillkit/CHANGELOG.md +484 -0
- package/skills/skills/skillkit/SKILL.md +511 -0
- package/skills/skills/skillkit/commands/skillkit.md +6 -0
- package/skills/skills/skillkit/commands/validate-plan.md +6 -0
- package/skills/skills/skillkit/commands/verify.md +6 -0
- package/skills/skills/skillkit/knowledge/INDEX.md +352 -0
- package/skills/skills/skillkit/knowledge/application/09-case-studies.md +257 -0
- package/skills/skills/skillkit/knowledge/application/10-technical-architecture.md +324 -0
- package/skills/skills/skillkit/knowledge/application/11-adoption-strategy.md +267 -0
- package/skills/skills/skillkit/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skills/skillkit/knowledge/application/13-competitive-landscape.md +198 -0
- package/skills/skills/skillkit/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skills/skillkit/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skills/skillkit/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skills/skillkit/knowledge/foundation/04-hybrid-patterns.md +308 -0
- package/skills/skills/skillkit/knowledge/foundation/05-token-economics.md +275 -0
- package/skills/skills/skillkit/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skills/skillkit/knowledge/foundation/07-security-concerns.md +322 -0
- package/skills/skills/skillkit/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skills/skillkit/knowledge/plugin-guide.md +614 -0
- package/skills/skills/skillkit/knowledge/tools/14-validation-tools-guide.md +150 -0
- package/skills/skills/skillkit/knowledge/tools/15-cost-tools-guide.md +157 -0
- package/skills/skills/skillkit/knowledge/tools/16-security-tools-guide.md +122 -0
- package/skills/skills/skillkit/knowledge/tools/17-pattern-tools-guide.md +161 -0
- package/skills/skills/skillkit/knowledge/tools/18-decision-helper-guide.md +243 -0
- package/skills/skills/skillkit/knowledge/tools/19-test-generator-guide.md +275 -0
- package/skills/skills/skillkit/knowledge/tools/20-split-skill-guide.md +149 -0
- package/skills/skills/skillkit/knowledge/tools/21-quality-scorer-guide.md +226 -0
- package/skills/skills/skillkit/knowledge/tools/22-migration-helper-guide.md +356 -0
- package/skills/skills/skillkit/knowledge/tools/23-subagent-creation-guide.md +448 -0
- package/skills/skills/skillkit/knowledge/tools/24-behavioral-testing-guide.md +122 -0
- package/skills/skills/skillkit/references/proposal-generation.md +982 -0
- package/skills/skills/skillkit/references/rationalization-catalog.md +75 -0
- package/skills/skills/skillkit/references/research-methodology.md +661 -0
- package/skills/skills/skillkit/references/section-2-full-creation-workflow.md +452 -0
- package/skills/skills/skillkit/references/section-3-validation-workflow-existing-skill.md +63 -0
- package/skills/skills/skillkit/references/section-4-decision-workflow-skills-vs-subagents.md +64 -0
- package/skills/skills/skillkit/references/section-5-migration-workflow-doc-to-skill.md +58 -0
- package/skills/skills/skillkit/references/section-6-subagent-creation-workflow.md +499 -0
- package/skills/skills/skillkit/references/section-7-knowledge-reference-map.md +72 -0
- package/skills/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skills/skillkit/scripts/decision_helper.py +799 -0
- package/skills/skills/skillkit/scripts/init_skill.py +400 -0
- package/skills/skills/skillkit/scripts/init_subagent.py +231 -0
- package/skills/skills/skillkit/scripts/migration_helper.py +669 -0
- package/skills/skills/skillkit/scripts/package_skill.py +211 -0
- package/skills/skills/skillkit/scripts/pattern_detector.py +381 -0
- package/skills/skills/skillkit/scripts/pattern_detector_new.py +382 -0
- package/skills/skills/skillkit/scripts/pressure_tester.py +157 -0
- package/skills/skills/skillkit/scripts/quality_scorer.py +999 -0
- package/skills/skills/skillkit/scripts/quick_validate.py +100 -0
- package/skills/skills/skillkit/scripts/security_scanner.py +474 -0
- package/skills/skills/skillkit/scripts/split_skill.py +540 -0
- package/skills/skills/skillkit/scripts/test_generator.py +695 -0
- package/skills/skills/skillkit/scripts/token_estimator.py +493 -0
- package/skills/skills/skillkit/scripts/utils/__init__.py +49 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
- package/skills/skills/skillkit/scripts/utils/budget_tracker.py +388 -0
- package/skills/skills/skillkit/scripts/utils/output_formatter.py +263 -0
- package/skills/skills/skillkit/scripts/utils/reference_validator.py +401 -0
- package/skills/skills/skillkit/scripts/validate_skill.py +594 -0
- package/skills/skills/skillkit/tests/test_behavioral.py +39 -0
- package/skills/skills/skillkit/tests/test_scenarios.md +83 -0
- package/skills/skills/skillkit/tests/test_skill.py +136 -0
- package/skills/skills/skillkit-help/SKILL.md +81 -0
- package/skills/skills/skillkit-help/knowledge/application/09-case-studies.md +257 -0
- package/skills/skills/skillkit-help/knowledge/application/12-testing-and-validation.md +276 -0
- package/skills/skills/skillkit-help/knowledge/foundation/01-why-skills-exist.md +246 -0
- package/skills/skills/skillkit-help/knowledge/foundation/02-skills-vs-subagents-comparison.md +312 -0
- package/skills/skills/skillkit-help/knowledge/foundation/03-skills-vs-subagents-decision-tree.md +346 -0
- package/skills/skills/skillkit-help/knowledge/foundation/06-platform-constraints.md +237 -0
- package/skills/skills/skillkit-help/knowledge/foundation/08-when-not-to-use-skills.md +270 -0
- package/skills/skills/skillkit-help/template/SKILL.md +52 -0
- package/skills/skills/social-media-seo/SKILL.md +278 -0
- package/skills/skills/social-media-seo/databases/caption-styles.csv +31 -0
- package/skills/skills/social-media-seo/databases/engagement-tactics.csv +16 -0
- package/skills/skills/social-media-seo/databases/hashtag-strategies.csv +21 -0
- package/skills/skills/social-media-seo/databases/hook-formulas.csv +26 -0
- package/skills/skills/social-media-seo/databases/keyword-clusters.csv +11 -0
- package/skills/skills/social-media-seo/databases/thread-structures.csv +26 -0
- package/skills/skills/social-media-seo/databases/viral-patterns.csv +21 -0
- package/skills/skills/social-media-seo/references/analytics-guide.md +321 -0
- package/skills/skills/social-media-seo/references/instagram-seo.md +235 -0
- package/skills/skills/social-media-seo/references/threads-seo.md +305 -0
- package/skills/skills/social-media-seo/references/x-twitter-seo.md +337 -0
- package/skills/skills/social-media-seo/scripts/query_database.py +191 -0
- package/skills/skills/storyteller/SKILL.md +241 -0
- package/skills/skills/storyteller/references/transformation-methodology.md +293 -0
- package/skills/skills/storyteller/references/visual-vocabulary.md +177 -0
- package/skills/skills/thread-pro/SKILL.md +162 -0
- package/skills/skills/thread-pro/anti-ai-patterns.md +120 -0
- package/skills/skills/thread-pro/hook-formulas.md +138 -0
- package/skills/skills/thread-pro/references/anti-ai-patterns.md +120 -0
- package/skills/skills/thread-pro/references/hook-formulas.md +138 -0
- package/skills/skills/thread-pro/references/thread-structures.md +240 -0
- package/skills/skills/thread-pro/references/voice-injection.md +130 -0
- package/skills/skills/thread-pro/thread-structures.md +240 -0
- package/skills/skills/thread-pro/voice-injection.md +130 -0
- package/skills/skills/tinkering/SKILL.md +251 -0
- package/skills/skills/tinkering/references/graduation-checklist.md +100 -0
- package/skills/skills/validate-plan/.skillkit-mode +1 -0
- package/skills/skills/validate-plan/SKILL.md +406 -0
- package/skills/skills/validate-plan/references/dry-principles.md +251 -0
- package/skills/skills/validate-plan/references/gap-analysis-guide.md +320 -0
- package/skills/skills/validate-plan/references/tdd-patterns.md +413 -0
- package/skills/skills/validate-plan/references/yagni-checklist.md +330 -0
- package/skills/skills/verify-before-ship/.skillkit-mode +1 -0
- package/skills/skills/verify-before-ship/SKILL.md +116 -0
- package/skills/skills/verify-before-ship/references/anti-rationalization.md +212 -0
- package/skills/skills/verify-before-ship/references/verification-gates.md +305 -0
- package/skills-manifest.json +8 -2
- package/src/picker.js +11 -5
- package/src/picker.test.js +36 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quality-scorer-guide
|
|
3
|
+
description: "Usage guide for quality_scorer.py - Score skill quality against best practices"
|
|
4
|
+
tool_name: "quality_scorer.py"
|
|
5
|
+
tool_type: "agent-layer"
|
|
6
|
+
read_priority: "high"
|
|
7
|
+
read_when:
|
|
8
|
+
- "User asks 'How good is my skill?'"
|
|
9
|
+
- "Quality assessment needed"
|
|
10
|
+
- "Before deployment"
|
|
11
|
+
- "Quality tracking required"
|
|
12
|
+
related_files:
|
|
13
|
+
- "Files 01-13: All best practices"
|
|
14
|
+
- "File 05: Token economics"
|
|
15
|
+
- "File 07: Security concerns"
|
|
16
|
+
- "File 10: Architecture standards"
|
|
17
|
+
token_estimate: "900"
|
|
18
|
+
last_updated: "2025-11-07"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Quality Scorer Guide
|
|
22
|
+
|
|
23
|
+
## PURPOSE
|
|
24
|
+
|
|
25
|
+
Agent-layer tool to score skill quality using 100-point system across 5 categories. Called BY Claude via bash_tool, NOT for direct human use.
|
|
26
|
+
|
|
27
|
+
**Flow:** User asks → Claude calls tool → JSON output → Claude explains
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## SCORING SYSTEM (100 Points)
|
|
32
|
+
|
|
33
|
+
| Category | Points | Criteria |
|
|
34
|
+
|----------|--------|----------|
|
|
35
|
+
| **Structure** | 20 | YAML, organization, progressive disclosure, references |
|
|
36
|
+
| **Content** | 30 | Description (WHAT+WHEN), triggers, writing style, examples |
|
|
37
|
+
| **Efficiency** | 20 | Line count, token estimate, bloat detection |
|
|
38
|
+
| **Security** | 15 | No secrets, safe patterns, input validation |
|
|
39
|
+
| **Style** | 15 | Imperative voice, conciseness, clear headers |
|
|
40
|
+
|
|
41
|
+
**Grade Scale:**
|
|
42
|
+
- A (90-100%): Excellent - Production ready
|
|
43
|
+
- B (80-89%): Good - Minor improvements
|
|
44
|
+
- C (70-79%): Fair - Several improvements needed
|
|
45
|
+
- D (60-69%): Needs Improvement
|
|
46
|
+
- F (<60%): Poor
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## USAGE (AGENT-LAYER)
|
|
51
|
+
|
|
52
|
+
### Standard Call
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
python quality_scorer.py /path/to/skill --format json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Output:**
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"status": "success",
|
|
62
|
+
"skill_path": "/mnt/skills/public/docx",
|
|
63
|
+
"skill_name": "docx",
|
|
64
|
+
"overall": {
|
|
65
|
+
"score": 86,
|
|
66
|
+
"max": 100,
|
|
67
|
+
"percentage": 86.0,
|
|
68
|
+
"grade": "B (Good)"
|
|
69
|
+
},
|
|
70
|
+
"categories": {
|
|
71
|
+
"structure": {"score": 20, "max": 20, "percentage": 100.0, "issues": []},
|
|
72
|
+
"content": {"score": 28, "max": 30, "percentage": 93.33, "issues": [...]},
|
|
73
|
+
"efficiency": {"score": 15, "max": 20, "percentage": 75.0, "issues": [...]},
|
|
74
|
+
"security": {"score": 15, "max": 15, "percentage": 100.0, "issues": []},
|
|
75
|
+
"style": {"score": 5, "max": 15, "percentage": 33.33, "issues": [...]}
|
|
76
|
+
},
|
|
77
|
+
"recommendations": [
|
|
78
|
+
"Content: Writing style not agent-optimized",
|
|
79
|
+
"Efficiency: Content bloat detected",
|
|
80
|
+
"Style: Not using imperative voice"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### Error Response
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"status": "error",
|
|
92
|
+
"error_type": "FileNotFound",
|
|
93
|
+
"message": "Skill directory not found: /path/to/skill",
|
|
94
|
+
"help": "Ensure skill directory exists and contains SKILL.md"
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Error Types:**
|
|
99
|
+
- `FileNotFound`: Invalid path or missing SKILL.md
|
|
100
|
+
- `UnexpectedError`: Script error (permissions, malformed files)
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## CLAUDE'S USAGE PATTERN
|
|
105
|
+
|
|
106
|
+
**Step 1:** User asks "How good is my skill?"
|
|
107
|
+
|
|
108
|
+
**Step 2:** Claude calls tool with JSON format:
|
|
109
|
+
```python
|
|
110
|
+
result = bash_tool("python quality_scorer.py /path/to/skill --format json")
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Step 3:** Parse JSON output:
|
|
114
|
+
```python
|
|
115
|
+
data = json.loads(result.stdout)
|
|
116
|
+
if data['status'] == 'success':
|
|
117
|
+
# Use score and recommendations
|
|
118
|
+
else:
|
|
119
|
+
# Handle error
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Step 4:** Explain to user naturally:
|
|
123
|
+
```
|
|
124
|
+
Your skill scores **86/100 (Grade B)** - Good quality with minor improvements needed.
|
|
125
|
+
|
|
126
|
+
**Strengths:**
|
|
127
|
+
✓ Perfect structure (20/20)
|
|
128
|
+
✓ Excellent security (15/15)
|
|
129
|
+
|
|
130
|
+
**Areas to Improve:**
|
|
131
|
+
âš Content: Writing style could be more agent-optimized (28/30)
|
|
132
|
+
âš Efficiency: Some content bloat detected (15/20)
|
|
133
|
+
âš Style: Use more imperative voice (5/15)
|
|
134
|
+
|
|
135
|
+
**Recommendations:**
|
|
136
|
+
1. Use more action verbs (Use, Run, Execute)
|
|
137
|
+
2. Reduce section length (move to references/)
|
|
138
|
+
3. Keep sentences concise (<20 words)
|
|
139
|
+
|
|
140
|
+
See Files 05, 07, 10 for optimization guidance.
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## CATEGORY DETAILS
|
|
146
|
+
|
|
147
|
+
### Structure (20 pts)
|
|
148
|
+
- YAML frontmatter valid (5): Has `name:` and `description:`
|
|
149
|
+
- File organization (5): SKILL.md exists, proper directory
|
|
150
|
+
- Progressive disclosure (5): <500 lines OR uses references/
|
|
151
|
+
- Reference files (5): Lowercase names, no spaces
|
|
152
|
+
|
|
153
|
+
### Content (30 pts)
|
|
154
|
+
- Description quality (10): Includes WHAT task does + WHEN to use
|
|
155
|
+
- Clear triggers (5): Has "use when", "trigger", "invoke" keywords
|
|
156
|
+
- Writing style (10): Uses code blocks, lists, tables, action verbs
|
|
157
|
+
- Inline examples (5): Examples in context, not separate section
|
|
158
|
+
|
|
159
|
+
### Efficiency (20 pts)
|
|
160
|
+
- Line count (10): <500 lines full, <800 partial
|
|
161
|
+
- Token estimate (5): <5,000 tokens (estimated: chars ÷ 4)
|
|
162
|
+
- No bloat (5): No sections >150 lines, >70% unique content
|
|
163
|
+
|
|
164
|
+
### Security (15 pts)
|
|
165
|
+
- No secrets (5): No hardcoded API keys, passwords, tokens
|
|
166
|
+
- Safe patterns (5): No `eval()`, `exec()`, `shell=True`
|
|
167
|
+
- Input validation (5): Has validation keywords/code
|
|
168
|
+
|
|
169
|
+
### Style (15 pts)
|
|
170
|
+
- Imperative voice (5): >70% sentences start with action verbs
|
|
171
|
+
- Concise (5): Average sentence length <20 words
|
|
172
|
+
- Clear headers (5): >70% headers descriptive (>2 words)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## EXIT CODES
|
|
177
|
+
|
|
178
|
+
| Code | Meaning | Quality |
|
|
179
|
+
|------|---------|---------|
|
|
180
|
+
| 0 | Success, score ≥70% | Acceptable quality |
|
|
181
|
+
| 1 | Success but <70%, OR error | Below threshold or invalid |
|
|
182
|
+
| 2 | Unexpected error | Script failure |
|
|
183
|
+
|
|
184
|
+
**CI/CD Integration:**
|
|
185
|
+
```yaml
|
|
186
|
+
- run: python quality_scorer.py ./skill --format json
|
|
187
|
+
# Fails if score <70%
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## HUMAN-READABLE MODE
|
|
193
|
+
|
|
194
|
+
**For developers debugging:**
|
|
195
|
+
```bash
|
|
196
|
+
# Text output with breakdown
|
|
197
|
+
python quality_scorer.py /path/to/skill --detailed
|
|
198
|
+
|
|
199
|
+
# Export report files
|
|
200
|
+
python quality_scorer.py /path/to/skill --export report.json
|
|
201
|
+
python quality_scorer.py /path/to/skill --export report.md
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Note:** Human mode is for development only. Claude always uses `--format json`.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## REFERENCES
|
|
209
|
+
|
|
210
|
+
**Best Practices:**
|
|
211
|
+
- Files 01-13: Comprehensive checklist
|
|
212
|
+
- File 05: Token optimization
|
|
213
|
+
- File 07: Security guidelines
|
|
214
|
+
- File 10: Architecture standards
|
|
215
|
+
|
|
216
|
+
**Related Tools:**
|
|
217
|
+
- `validate_skill.py`: Technical validation
|
|
218
|
+
- `security_scanner.py`: Detailed security audit
|
|
219
|
+
- `split_skill.py`: Fix efficiency via progressive disclosure
|
|
220
|
+
- `token_estimator.py`: Detailed token analysis
|
|
221
|
+
|
|
222
|
+
**Script:** `/mnt/project/quality_scorer.py` (831 lines)
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
**Status:** ✅ Production-ready | **Version:** 1.0 | **Integration:** Agent-layer JSON output
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migration-helper-guide
|
|
3
|
+
description: "Usage guide for migration_helper.py - Convert docs to skill format"
|
|
4
|
+
tool_name: "migration_helper.py"
|
|
5
|
+
tool_type: "agent-layer"
|
|
6
|
+
read_priority: "medium"
|
|
7
|
+
read_when:
|
|
8
|
+
- "User wants to convert existing docs to skill"
|
|
9
|
+
- "Has markdown or text documentation"
|
|
10
|
+
- "Needs rapid skill creation"
|
|
11
|
+
- "Bulk conversion required"
|
|
12
|
+
related_files:
|
|
13
|
+
- "File 10: Technical architecture"
|
|
14
|
+
- "File 05: Token economics"
|
|
15
|
+
- "Files 01-13: Best practices"
|
|
16
|
+
token_estimate: "800"
|
|
17
|
+
last_updated: "2025-11-08"
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Migration Helper Guide
|
|
21
|
+
|
|
22
|
+
## PURPOSE
|
|
23
|
+
|
|
24
|
+
Agent-layer tool to convert existing documentation (MD, TXT) to proper skill format. Automates structure generation, section classification, and frontmatter creation.
|
|
25
|
+
|
|
26
|
+
**Flow:** User provides doc → Claude calls tool → JSON output → Skill created
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## SUPPORTED FORMATS
|
|
31
|
+
|
|
32
|
+
| Format | Extension | Status |
|
|
33
|
+
|--------|-----------|--------|
|
|
34
|
+
| Markdown | .md, .markdown | ✅ Full support |
|
|
35
|
+
| Plain text | .txt | ✅ Full support |
|
|
36
|
+
| PDF | .pdf | ⌠Future |
|
|
37
|
+
| DOCX | .docx | ⌠Future |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## USAGE (AGENT-LAYER)
|
|
42
|
+
|
|
43
|
+
### Standard Conversion
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
python migration_helper.py source.md --format json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Output:**
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"status": "success",
|
|
53
|
+
"source": "company-guide.md",
|
|
54
|
+
"format": "markdown",
|
|
55
|
+
"skill_name": "company-guide",
|
|
56
|
+
"preview": false,
|
|
57
|
+
"conversion": {
|
|
58
|
+
"source_lines": 543,
|
|
59
|
+
"skill_md_lines": 187,
|
|
60
|
+
"core_sections": 4,
|
|
61
|
+
"reference_sections": 8,
|
|
62
|
+
"reduction_percent": 65.6
|
|
63
|
+
},
|
|
64
|
+
"output": {
|
|
65
|
+
"skill_path": "./company-guide",
|
|
66
|
+
"skill_md": "./company-guide/SKILL.md",
|
|
67
|
+
"references": ["advanced-features.md", "troubleshooting.md", ...],
|
|
68
|
+
"report": "./company-guide/conversion_report.md"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### Preview Mode (Before Converting)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python migration_helper.py source.md --preview --format json
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Output:** Same structure with `"preview": true` and no files created.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### Custom Options
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Custom skill name
|
|
89
|
+
python migration_helper.py doc.md --skill-name my-skill --format json
|
|
90
|
+
|
|
91
|
+
# Custom output directory
|
|
92
|
+
python migration_helper.py doc.md --output-dir ./skills/ --format json
|
|
93
|
+
|
|
94
|
+
# Combined
|
|
95
|
+
python migration_helper.py doc.md --skill-name my-skill --output-dir ./skills/ --preview --format json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## CLASSIFICATION LOGIC
|
|
101
|
+
|
|
102
|
+
### Core Sections (→ SKILL.md)
|
|
103
|
+
Keywords: overview, introduction, setup, installation, quick start, getting started, basic, usage, workflow, how to use
|
|
104
|
+
|
|
105
|
+
**Characteristics:**
|
|
106
|
+
- Essential understanding
|
|
107
|
+
- Getting started content
|
|
108
|
+
- Basic workflows
|
|
109
|
+
- ≤100 lines
|
|
110
|
+
|
|
111
|
+
### Reference Sections (→ references/)
|
|
112
|
+
Keywords: advanced, troubleshooting, examples, reference, API, edge cases, detailed, appendix, additional, extended
|
|
113
|
+
|
|
114
|
+
**Characteristics:**
|
|
115
|
+
- Advanced topics
|
|
116
|
+
- Detailed examples
|
|
117
|
+
- Technical specs
|
|
118
|
+
- >100 lines
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## ERROR RESPONSES
|
|
123
|
+
|
|
124
|
+
### File Not Found
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"status": "error",
|
|
128
|
+
"error_type": "FileNotFound",
|
|
129
|
+
"message": "Source not found: missing.md",
|
|
130
|
+
"help": "Ensure source file exists and path is correct"
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Unsupported Format
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"status": "error",
|
|
138
|
+
"error_type": "UnsupportedFormat",
|
|
139
|
+
"message": "Unsupported format: .pdf",
|
|
140
|
+
"help": "Only .md, .markdown, and .txt files are supported"
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Unexpected Error
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"status": "error",
|
|
148
|
+
"error_type": "UnexpectedError",
|
|
149
|
+
"message": "...",
|
|
150
|
+
"help": "Check file permissions and content format"
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## CLAUDE'S USAGE PATTERN
|
|
157
|
+
|
|
158
|
+
**Step 1:** User requests conversion
|
|
159
|
+
```
|
|
160
|
+
User: "Convert this markdown file to a Claude skill"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Step 2:** Claude calls tool with preview first
|
|
164
|
+
```python
|
|
165
|
+
# Preview to show user what will happen
|
|
166
|
+
result = bash_tool("python migration_helper.py /path/to/doc.md --preview --format json")
|
|
167
|
+
data = json.loads(result.stdout)
|
|
168
|
+
|
|
169
|
+
if data['status'] == 'success':
|
|
170
|
+
# Show preview to user
|
|
171
|
+
print(f"This will create skill '{data['skill_name']}' with:")
|
|
172
|
+
print(f"- {data['conversion']['core_sections']} core sections")
|
|
173
|
+
print(f"- {data['conversion']['reference_sections']} reference files")
|
|
174
|
+
print(f"- {data['conversion']['reduction_percent']}% size reduction")
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Step 3:** If user approves, execute conversion
|
|
178
|
+
```python
|
|
179
|
+
# Actual conversion (without --preview)
|
|
180
|
+
result = bash_tool("python migration_helper.py /path/to/doc.md --format json")
|
|
181
|
+
data = json.loads(result.stdout)
|
|
182
|
+
|
|
183
|
+
if data['status'] == 'success':
|
|
184
|
+
# Inform user of success
|
|
185
|
+
print(f"✅ Skill created at: {data['output']['skill_path']}")
|
|
186
|
+
print(f"Next: Review SKILL.md and validate structure")
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Step 4:** Suggest next actions
|
|
190
|
+
```
|
|
191
|
+
Next steps:
|
|
192
|
+
1. Review SKILL.md frontmatter
|
|
193
|
+
2. Validate: python validate_skill.py {skill_path}/
|
|
194
|
+
3. Check quality: python quality_scorer.py {skill_path}/ --format json
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## GENERATED STRUCTURE
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
{skill-name}/
|
|
203
|
+
├── SKILL.md # Core content + frontmatter
|
|
204
|
+
├── conversion_report.md # Conversion summary
|
|
205
|
+
└── references/ # Reference materials (if any)
|
|
206
|
+
├── advanced-features.md
|
|
207
|
+
├── troubleshooting.md
|
|
208
|
+
├── examples.md
|
|
209
|
+
└── ...
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**SKILL.md includes:**
|
|
213
|
+
- YAML frontmatter (name, description, source)
|
|
214
|
+
- Core sections
|
|
215
|
+
- Additional Resources section (links to references/)
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## EXIT CODES
|
|
220
|
+
|
|
221
|
+
| Code | Meaning | Scenario |
|
|
222
|
+
|------|---------|----------|
|
|
223
|
+
| 0 | Success | Conversion completed |
|
|
224
|
+
| 1 | Invalid input | File not found, unsupported format |
|
|
225
|
+
| 2 | Unexpected error | Permission denied, I/O error |
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## CONVERSION WORKFLOW
|
|
230
|
+
|
|
231
|
+
**Typical Agent-Layer Flow:**
|
|
232
|
+
|
|
233
|
+
1. **Parse source** → Detect format, extract sections
|
|
234
|
+
2. **Classify** → Core vs reference sections
|
|
235
|
+
3. **Generate frontmatter** → Auto-create YAML metadata
|
|
236
|
+
4. **Plan** → Calculate reduction, estimate tokens
|
|
237
|
+
5. **Execute** → Create skill structure, generate files
|
|
238
|
+
6. **Report** → Conversion summary with next steps
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## HUMAN-READABLE MODE
|
|
243
|
+
|
|
244
|
+
**For developer debugging:**
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Preview in console
|
|
248
|
+
python migration_helper.py doc.md --preview
|
|
249
|
+
|
|
250
|
+
# Convert with console output
|
|
251
|
+
python migration_helper.py doc.md
|
|
252
|
+
|
|
253
|
+
# Custom options
|
|
254
|
+
python migration_helper.py doc.md --skill-name my-skill --output-dir ./skills/
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Note:** Claude always uses `--format json` for machine-parseable output.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## INTEGRATION EXAMPLE
|
|
262
|
+
|
|
263
|
+
```python
|
|
264
|
+
# Complete skill creation workflow
|
|
265
|
+
|
|
266
|
+
# Step 1: Convert docs
|
|
267
|
+
convert_result = bash_tool(
|
|
268
|
+
"python migration_helper.py company-docs.md --format json"
|
|
269
|
+
)
|
|
270
|
+
convert_data = json.loads(convert_result.stdout)
|
|
271
|
+
|
|
272
|
+
if convert_data['status'] != 'success':
|
|
273
|
+
# Handle error
|
|
274
|
+
return
|
|
275
|
+
|
|
276
|
+
skill_path = convert_data['output']['skill_path']
|
|
277
|
+
|
|
278
|
+
# Step 2: Validate structure
|
|
279
|
+
validate_result = bash_tool(
|
|
280
|
+
f"python validate_skill.py {skill_path} --format json"
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
# Step 3: Check quality
|
|
284
|
+
quality_result = bash_tool(
|
|
285
|
+
f"python quality_scorer.py {skill_path} --format json"
|
|
286
|
+
)
|
|
287
|
+
quality_data = json.loads(quality_result.stdout)
|
|
288
|
+
|
|
289
|
+
# Step 4: Optimize if needed
|
|
290
|
+
if quality_data['overall']['percentage'] < 70:
|
|
291
|
+
# Suggest improvements or split
|
|
292
|
+
split_result = bash_tool(
|
|
293
|
+
f"python split_skill.py {skill_path} --preview"
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
# Step 5: Report to user
|
|
297
|
+
print(f"✅ Skill created and validated")
|
|
298
|
+
print(f"Quality: {quality_data['overall']['grade']}")
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## BEST PRACTICES
|
|
304
|
+
|
|
305
|
+
**Before Converting:**
|
|
306
|
+
1. Use `--preview` first to see conversion plan
|
|
307
|
+
2. Check that source format is supported
|
|
308
|
+
3. Review section titles for better classification
|
|
309
|
+
|
|
310
|
+
**After Converting:**
|
|
311
|
+
1. ✅ Review SKILL.md frontmatter (update description)
|
|
312
|
+
2. ✅ Add trigger phrases (WHEN to use)
|
|
313
|
+
3. ✅ Validate: `python validate_skill.py {skill}/`
|
|
314
|
+
4. ✅ Test skill in Claude
|
|
315
|
+
5. ✅ Optimize if needed
|
|
316
|
+
|
|
317
|
+
**For Bulk Conversion:**
|
|
318
|
+
```bash
|
|
319
|
+
for doc in docs/*.md; do
|
|
320
|
+
python migration_helper.py "$doc" --output-dir ./skills/ --format json
|
|
321
|
+
done
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## LIMITATIONS
|
|
327
|
+
|
|
328
|
+
**Current:**
|
|
329
|
+
- MD and TXT only (no PDF, DOCX yet)
|
|
330
|
+
- Auto-generated descriptions may need manual refinement
|
|
331
|
+
- Section classification is heuristic-based (~85% accuracy)
|
|
332
|
+
|
|
333
|
+
**Workarounds:**
|
|
334
|
+
- Manually edit SKILL.md after conversion
|
|
335
|
+
- Use `--skill-name` for better naming
|
|
336
|
+
- Review classification in preview mode
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## REFERENCES
|
|
341
|
+
|
|
342
|
+
**Best Practices:**
|
|
343
|
+
- File 10: Skill structure standards
|
|
344
|
+
- File 05: Progressive disclosure rationale
|
|
345
|
+
- Files 01-13: Complete skill design guide
|
|
346
|
+
|
|
347
|
+
**Related Tools:**
|
|
348
|
+
- `validate_skill.py`: Validate converted skill
|
|
349
|
+
- `quality_scorer.py`: Assess conversion quality
|
|
350
|
+
- `split_skill.py`: Further optimize if needed
|
|
351
|
+
|
|
352
|
+
**Script:** `/mnt/project/migration_helper.py` (~560 lines)
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
**Status:** ✅ Production-ready | **Version:** 1.0 | **Integration:** Agent-layer JSON output
|