@rfxlamia/skillkit 1.0.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 +7 -2
- package/skills/quick-spec/tests/__pycache__/test_skill.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skillkit/.claude/settings.local.json +7 -0
- package/skills/skillkit/scripts/__pycache__/decision_helper.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/__pycache__/test_generator.cpython-314-pytest-9.0.2.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/budget_tracker.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/output_formatter.cpython-314.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-312.pyc +0 -0
- package/skills/skillkit/scripts/utils/__pycache__/reference_validator.cpython-314.pyc +0 -0
- 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/banner.js +1 -1
- package/src/cli.js +15 -4
- package/src/install.js +45 -29
- package/src/install.test.js +75 -7
- package/src/picker.js +15 -4
- package/src/picker.test.js +36 -1
- package/src/scope.js +8 -39
- package/src/scope.test.js +9 -13
- package/src/tools.js +76 -0
- package/src/tools.test.js +80 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Validation Tools: Usage Guide"
|
|
3
|
+
purpose: "Quick start for validate_skill.py automation"
|
|
4
|
+
token_estimate: "800"
|
|
5
|
+
read_priority: "high"
|
|
6
|
+
read_when: ["Before skill deployment", "CI/CD setup", "Quality checks"]
|
|
7
|
+
related_files:
|
|
8
|
+
concepts: ["02-description-patterns", "07-security", "10-architecture", "12-validation-theory"]
|
|
9
|
+
tools: ["validate_skill.py", "security_scanner.py", "token_estimator.py"]
|
|
10
|
+
last_updated: "2025-11-05"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Validation Tools: Quick Start
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`validate_skill.py` automates 8 quality checks, catches issues early (saves 2-4 hours), zero token cost.
|
|
18
|
+
|
|
19
|
+
**Theory:** File 12. **This guide:** Usage only.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
### Using Virtual Environment (Recommended)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
cd ~/.claude/skills/skillkit
|
|
29
|
+
source venv/bin/activate
|
|
30
|
+
python scripts/validate_skill.py --help
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Without Virtual Environment
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install pyyaml
|
|
37
|
+
python3 /path/to/skillkit/scripts/validate_skill.py --help
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Basic Usage
|
|
43
|
+
|
|
44
|
+
> **Note:** Make sure venv is activated: `source venv/bin/activate`
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python scripts/validate_skill.py <skill_path> [--strict] [--format text|json]
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Example:**
|
|
51
|
+
```bash
|
|
52
|
+
# With venv activated
|
|
53
|
+
python scripts/validate_skill.py ./my-skill/
|
|
54
|
+
|
|
55
|
+
# Full path without venv
|
|
56
|
+
python3 "$HOME/.claude/skills/skillkit/scripts/validate_skill.py" ./my-skill/
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Output:**
|
|
60
|
+
```
|
|
61
|
+
✓ YAML Frontmatter
|
|
62
|
+
✓ File Structure
|
|
63
|
+
âš Description Quality (missing trigger)
|
|
64
|
+
✓ Token Efficiency (347 lines)
|
|
65
|
+
✓ Security Basics
|
|
66
|
+
✓ Writing Style
|
|
67
|
+
✓ Progressive Disclosure
|
|
68
|
+
✓ Cross-References
|
|
69
|
+
|
|
70
|
+
Score: 7/8 (1 warning)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Exit Codes:** 0=pass, 1=warnings, 2=failures
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Workflows
|
|
78
|
+
|
|
79
|
+
**Pre-Deployment:** `python3 validate_skill.py ./my-skill/` → Fix issues → Re-validate until 8/8
|
|
80
|
+
|
|
81
|
+
**Fixes:** Description (File 02) | Tokens (File 10) | Security (File 07)
|
|
82
|
+
|
|
83
|
+
**CI/CD:** `source venv/bin/activate && python scripts/validate_skill.py ./my-skill/ --strict --format json; exit $?`
|
|
84
|
+
|
|
85
|
+
**Batch:** `source venv/bin/activate && for skill in skills/*/; do python scripts/validate_skill.py "$skill" --strict; done`
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Validation Checks
|
|
90
|
+
|
|
91
|
+
| Check | Validates | Reference |
|
|
92
|
+
|-------|-----------|-----------|
|
|
93
|
+
| YAML | Valid syntax, required fields | File 02 |
|
|
94
|
+
| Structure | SKILL.md, scripts/, references/ | File 10 |
|
|
95
|
+
| Description | WHAT + WHEN triggers | File 02 |
|
|
96
|
+
| Tokens | <500 lines, <5000 tokens | File 05 |
|
|
97
|
+
| Security | No secrets, safe patterns | File 07 |
|
|
98
|
+
| Style | Imperative, scannable | All files |
|
|
99
|
+
| Disclosure | Proper splits, TOCs | File 10 |
|
|
100
|
+
| References | No broken links | Phase 1-2 |
|
|
101
|
+
|
|
102
|
+
**Note:** Use `security_scanner.py` for comprehensive audit (File 16).
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Troubleshooting
|
|
107
|
+
|
|
108
|
+
| Issue | Solution |
|
|
109
|
+
|-------|----------|
|
|
110
|
+
| "SKILL.md not found" | `ls my-skill/SKILL.md` - verify path |
|
|
111
|
+
| "YAML invalid" | Check `---` markers, File 02 format |
|
|
112
|
+
| "Module yaml not found" | Activate venv: `source venv/bin/activate` or install: `pip install pyyaml` |
|
|
113
|
+
| Many warnings | Run without `--strict` first, fix failures, then enable |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Toolchain Integration
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
validate_skill.py → security_scanner.py → token_estimator.py → deploy
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Best Practices:**
|
|
124
|
+
- ✅ Validate before `package_skill.py`
|
|
125
|
+
- ✅ Use `--strict` in CI/CD
|
|
126
|
+
- ✅ Fix all failures before deploy
|
|
127
|
+
- ✅ Validate frequently during dev
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Quick Reference
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Make sure venv is active first
|
|
135
|
+
source venv/bin/activate
|
|
136
|
+
|
|
137
|
+
# Standard
|
|
138
|
+
python scripts/validate_skill.py ./my-skill/
|
|
139
|
+
|
|
140
|
+
# Strict (CI)
|
|
141
|
+
python scripts/validate_skill.py ./my-skill/ --strict
|
|
142
|
+
|
|
143
|
+
# JSON output
|
|
144
|
+
python scripts/validate_skill.py ./my-skill/ --format json
|
|
145
|
+
|
|
146
|
+
# Full path (tanpa venv)
|
|
147
|
+
python3 "$HOME/.claude/skills/skillkit/scripts/validate_skill.py" ./my-skill/
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Next:** security_scanner.py (File 16) → token_estimator.py (File 15)
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Cost Tools: Token Estimation Guide"
|
|
3
|
+
purpose: "Quick start for token_estimator.py automation"
|
|
4
|
+
token_estimate: "800"
|
|
5
|
+
read_priority: "high"
|
|
6
|
+
read_when: ["Cost analysis needed", "Progressive disclosure planning", "Budget optimization"]
|
|
7
|
+
related_files:
|
|
8
|
+
concepts: ["05-token-economics", "10-progressive-architecture", "15-cost-optimization"]
|
|
9
|
+
tools: ["token_estimator.py", "validate_skill.py"]
|
|
10
|
+
last_updated: "2025-11-05"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Cost Tools: Quick Start
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`token_estimator.py` predicts token consumption and monthly costs using 3-level progressive disclosure analysis.
|
|
18
|
+
|
|
19
|
+
**Zero deployment cost** - pure estimation. Prevents token bloat before production.
|
|
20
|
+
|
|
21
|
+
**Theory:** File 05, 10, 15. **This guide:** Usage only.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
python3 /mnt/user-data/outputs/scripts/token_estimator.py --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
No dependencies required (uses built-in libraries).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Basic Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python3 token_estimator.py <skill_path> [--volume N] [--model MODEL] [--format FORMAT]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Example:**
|
|
42
|
+
```bash
|
|
43
|
+
# Human-readable output (default)
|
|
44
|
+
python3 token_estimator.py ./my-skill/
|
|
45
|
+
|
|
46
|
+
# JSON output for automation (v1.0.1+)
|
|
47
|
+
python3 token_estimator.py ./my-skill/ --format json
|
|
48
|
+
|
|
49
|
+
# Output shows:
|
|
50
|
+
# - Progressive disclosure (3 levels)
|
|
51
|
+
# - Usage scenarios (idle/typical/worst)
|
|
52
|
+
# - Cost projections
|
|
53
|
+
# - Optimization recommendations
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Options
|
|
59
|
+
|
|
60
|
+
**Volume:** `--volume N` (default: 1000)
|
|
61
|
+
```bash
|
|
62
|
+
python3 token_estimator.py ./my-skill/ --volume 10000
|
|
63
|
+
# Projects costs for 10K monthly uses
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Model:** `--model MODEL` (default: claude-sonnet-4.5)
|
|
67
|
+
```bash
|
|
68
|
+
python3 token_estimator.py ./my-skill/ --model claude-opus-4
|
|
69
|
+
# Uses Opus pricing ($15/$75 per M tokens)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Format:** `--format {text|json}` (default: text) *[New in v1.0.1]*
|
|
73
|
+
```bash
|
|
74
|
+
# JSON output - parseable by automation tools
|
|
75
|
+
python3 token_estimator.py ./my-skill/ --format json | python -m json.tool
|
|
76
|
+
|
|
77
|
+
# Text output - human-readable
|
|
78
|
+
python3 token_estimator.py ./my-skill/ --format text
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Workflows
|
|
84
|
+
|
|
85
|
+
**Baseline Measurement:** `python3 token_estimator.py ./my-skill/` (note typical tokens)
|
|
86
|
+
|
|
87
|
+
**Post-Optimization:** Re-run after applying File 10, 15 techniques (compare reduction)
|
|
88
|
+
|
|
89
|
+
**Budget Planning:** `--volume 50000 --model claude-sonnet-4.5` (enterprise projections)
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Understanding Output
|
|
94
|
+
|
|
95
|
+
| Component | Description | Target |
|
|
96
|
+
|-----------|-------------|--------|
|
|
97
|
+
| Level 1 (Metadata) | YAML, always loaded | <100 tokens |
|
|
98
|
+
| Level 2 (Body) | SKILL.md body, when triggered | <5,000 tokens |
|
|
99
|
+
| Level 3 (Refs) | References, on-demand | <2,000 each |
|
|
100
|
+
|
|
101
|
+
**Scenarios:** Idle (metadata) | Typical (+ body) | With-Ref (+ smallest ref) | Worst (all)
|
|
102
|
+
|
|
103
|
+
**Cost:** (Input × $3/M) + (Output × $15/M) × Volume | Reference: Files 05, 10
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Optimization Loop
|
|
108
|
+
|
|
109
|
+
1. Baseline: `token_estimator.py ./my-skill/` (e.g., 4,800 typical)
|
|
110
|
+
2. Optimize: Apply File 10, 15 (move to references/, shorten description)
|
|
111
|
+
3. Re-measure: Run again (target: <3,000 typical)
|
|
112
|
+
4. Calculate: Compare costs (e.g., 50% reduction = $230/year savings)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Troubleshooting
|
|
117
|
+
|
|
118
|
+
| Issue | Fix |
|
|
119
|
+
|-------|-----|
|
|
120
|
+
| Path not found | `ls ./my-skill/SKILL.md` |
|
|
121
|
+
| High tokens | File 10 (progressive disclosure) |
|
|
122
|
+
| Large metadata | Shorten description |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Best Practices
|
|
127
|
+
|
|
128
|
+
- ✅ Estimate before building (set token budget)
|
|
129
|
+
- ✅ Check frequently during development
|
|
130
|
+
- ✅ Target: Metadata <100, Body <5,000, Refs <2,000
|
|
131
|
+
- ✅ Final check pre-deployment
|
|
132
|
+
|
|
133
|
+
**Toolchain:** validate_skill.py → token_estimator.py → optimize → re-check
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Quick Reference
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Basic estimate (human-readable)
|
|
141
|
+
python3 token_estimator.py ./my-skill/
|
|
142
|
+
|
|
143
|
+
# JSON output for automation
|
|
144
|
+
python3 token_estimator.py ./my-skill/ --format json
|
|
145
|
+
|
|
146
|
+
# Custom volume
|
|
147
|
+
python3 token_estimator.py ./my-skill/ --volume 5000
|
|
148
|
+
|
|
149
|
+
# Opus pricing with JSON output
|
|
150
|
+
python3 token_estimator.py ./my-skill/ --model claude-opus-4 --format json
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Targets:** Metadata <100 | Body <5,000 | Refs <2,000 each
|
|
154
|
+
|
|
155
|
+
**Next:** Optimize with File 10, 15 techniques if over targets.
|
|
156
|
+
|
|
157
|
+
**v1.0.1 Changes:** Added `--format` parameter for JSON/text output standardization.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Security Tools: Vulnerability Scanning Guide"
|
|
3
|
+
purpose: "Quick start for security_scanner.py automation"
|
|
4
|
+
token_estimate: "800"
|
|
5
|
+
read_priority: "critical"
|
|
6
|
+
read_when: ["Before deployment", "Security audit", "Third-party skill review"]
|
|
7
|
+
related_files:
|
|
8
|
+
concepts: ["07-security-concerns", "14-validation-theory"]
|
|
9
|
+
tools: ["security_scanner.py", "validate_skill.py"]
|
|
10
|
+
last_updated: "2025-11-05"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Security Tools: Quick Start
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`security_scanner.py` detects 7 types of security vulnerabilities automatically. **Zero false sense of security** - finds real risks.
|
|
18
|
+
|
|
19
|
+
**Critical for:** Pre-deployment, third-party skill audits, compliance checks.
|
|
20
|
+
|
|
21
|
+
**Theory:** File 07. **This guide:** Usage only.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
python3 /mnt/user-data/outputs/scripts/security_scanner.py --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
No dependencies (uses built-in libraries).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Basic Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python3 security_scanner.py <skill_path> [--severity LEVEL] [--format FORMAT]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Example:**
|
|
42
|
+
```bash
|
|
43
|
+
python3 security_scanner.py ./my-skill/
|
|
44
|
+
|
|
45
|
+
# Output shows:
|
|
46
|
+
# - Critical issues (must fix)
|
|
47
|
+
# - High severity (should fix)
|
|
48
|
+
# - Medium issues (review)
|
|
49
|
+
# - Exit code: 0=ok, 1=high, 2=critical
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Vulnerability Types
|
|
55
|
+
|
|
56
|
+
7 types detected automatically:
|
|
57
|
+
- **CRITICAL:** Hardcoded secrets, shell=True, eval/exec
|
|
58
|
+
- **HIGH:** SQL injection, pickle, unsafe yaml.load()
|
|
59
|
+
- **MEDIUM:** Path traversal, network calls, prompt injection
|
|
60
|
+
|
|
61
|
+
Reference: File 07 for prevention.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Options
|
|
66
|
+
|
|
67
|
+
`--severity LEVEL`: Filter by CRITICAL/HIGH/MEDIUM/LOW
|
|
68
|
+
|
|
69
|
+
`--format json`: Machine-readable for CI/CD
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Workflows
|
|
74
|
+
|
|
75
|
+
**Pre-Deploy:** `security_scanner.py ./skill/` (exit 0=ok, 1=high, 2=critical)
|
|
76
|
+
|
|
77
|
+
**CI/CD:** `--severity CRITICAL --format json` in pipeline
|
|
78
|
+
|
|
79
|
+
**Third-Party:** Scan untrusted skills before use
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Remediation Guide
|
|
84
|
+
|
|
85
|
+
| Severity | Action | Common Fixes |
|
|
86
|
+
|----------|--------|--------------|
|
|
87
|
+
| CRITICAL | Do NOT deploy | Env vars for secrets, remove shell=True/eval/exec |
|
|
88
|
+
| HIGH | Fix before prod | Parameterized queries, json instead of pickle |
|
|
89
|
+
| MEDIUM | Review & mitigate | Validate paths, verify network calls (File 07) |
|
|
90
|
+
|
|
91
|
+
**False Positives:** URLs in docs (expected), review all in context
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Best Practices
|
|
96
|
+
|
|
97
|
+
- ✅ Scan before EVERY deployment (MUST pass)
|
|
98
|
+
- ✅ Address all CRITICAL findings
|
|
99
|
+
- ✅ Never commit secrets (use env vars)
|
|
100
|
+
- ✅ Scan third-party skills before use
|
|
101
|
+
- ✅ Test in isolated environment
|
|
102
|
+
|
|
103
|
+
**Toolchain:** validate_skill.py → security_scanner.py → token_estimator.py
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Quick Reference
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Standard scan
|
|
111
|
+
python3 security_scanner.py ./my-skill/
|
|
112
|
+
|
|
113
|
+
# Critical only
|
|
114
|
+
python3 security_scanner.py ./my-skill/ --severity CRITICAL
|
|
115
|
+
|
|
116
|
+
# JSON for CI/CD
|
|
117
|
+
python3 security_scanner.py ./my-skill/ --format json
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Exit Codes:** 0=safe | 1=high severity | 2=critical issues
|
|
121
|
+
|
|
122
|
+
**Next:** File 07 for remediation techniques, validate_skill.py for structure.
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Pattern Tools: Workflow Selection Guide"
|
|
3
|
+
purpose: "Quick start for pattern_detector.py automation"
|
|
4
|
+
token_estimate: "800"
|
|
5
|
+
read_priority: "medium"
|
|
6
|
+
read_when: ["Designing new skill", "Pattern selection needed", "Architecture planning"]
|
|
7
|
+
related_files:
|
|
8
|
+
concepts: ["04-hybrid-patterns", "09-case-studies", "Panduan-Komprehensif"]
|
|
9
|
+
tools: ["pattern_detector.py"]
|
|
10
|
+
last_updated: "2025-11-05"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Pattern Tools: Quick Start
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`pattern_detector.py` recommends workflow patterns from 8 proven patterns. **Accelerates design** by matching use cases to best practices.
|
|
18
|
+
|
|
19
|
+
**Use when:** Starting new skill, unsure which pattern fits, learning proven architectures.
|
|
20
|
+
|
|
21
|
+
**Theory:** Panduan Komprehensif, Files 04, 09. **This guide:** Usage only.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
python3 /mnt/user-data/outputs/scripts/pattern_detector.py --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
No dependencies (built-in libraries only).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Basic Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python3 pattern_detector.py "your use case description" [--format {text|json}]
|
|
39
|
+
python3 pattern_detector.py --interactive
|
|
40
|
+
python3 pattern_detector.py --list [--format {text|json}]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Example:**
|
|
44
|
+
```bash
|
|
45
|
+
# Human-readable output (default)
|
|
46
|
+
python3 pattern_detector.py "convert PDF to Word"
|
|
47
|
+
|
|
48
|
+
# JSON output for automation (v1.0.1+)
|
|
49
|
+
python3 pattern_detector.py "convert PDF to Word" --format json
|
|
50
|
+
|
|
51
|
+
# Output:
|
|
52
|
+
# - Recommended pattern: Read-Process-Write
|
|
53
|
+
# - Match confidence: 33%
|
|
54
|
+
# - Use cases, examples, references
|
|
55
|
+
# - (JSON mode: includes alternatives and structured data)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Three Modes
|
|
61
|
+
|
|
62
|
+
**1. Analysis Mode:** Describe use case, get recommendation
|
|
63
|
+
```bash
|
|
64
|
+
# Text output (default)
|
|
65
|
+
python3 pattern_detector.py "scan code for security issues"
|
|
66
|
+
|
|
67
|
+
# JSON output (v1.0.1+)
|
|
68
|
+
python3 pattern_detector.py "scan code for security issues" --format json
|
|
69
|
+
# â†' Search-Analyze-Report pattern with alternatives in JSON
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**2. Interactive Mode:** Guided questionnaire
|
|
73
|
+
```bash
|
|
74
|
+
python3 pattern_detector.py --interactive
|
|
75
|
+
# Answer questions â†' Get recommendation
|
|
76
|
+
# Note: Interactive mode does not support JSON output
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**3. List Mode:** See all patterns
|
|
80
|
+
```bash
|
|
81
|
+
# Text output - formatted list
|
|
82
|
+
python3 pattern_detector.py --list
|
|
83
|
+
|
|
84
|
+
# JSON output - parseable structure (v1.0.1+)
|
|
85
|
+
python3 pattern_detector.py --list --format json
|
|
86
|
+
# Shows all 8 patterns with keywords and examples
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## The 8 Patterns
|
|
92
|
+
|
|
93
|
+
| Pattern | Use For |
|
|
94
|
+
|---------|---------|
|
|
95
|
+
| Read-Process-Write | File transformations, cleanup |
|
|
96
|
+
| Search-Analyze-Report | Code analysis, security scans |
|
|
97
|
+
| Script Automation | CI/CD, test automation |
|
|
98
|
+
| Wizard Multi-Step | Project setup, configuration |
|
|
99
|
+
| Template Generation | Reports, emails, documents |
|
|
100
|
+
| Iterative Refinement | Code review, optimization |
|
|
101
|
+
| Context Aggregation | Dashboards, status reports |
|
|
102
|
+
| Validation Pipeline | Data validation, compliance |
|
|
103
|
+
|
|
104
|
+
Reference: Panduan Komprehensif for details.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Workflows
|
|
109
|
+
|
|
110
|
+
**Selection:** Describe use case → Review recommendation + alternatives → Study pattern (Panduan)
|
|
111
|
+
|
|
112
|
+
**Learning:** List patterns → Study Panduan → Try interactive mode
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Output Interpretation
|
|
117
|
+
|
|
118
|
+
**Confidence:** >50% (strong) | 30-50% (good, check alternatives) | <30% (weak, try interactive)
|
|
119
|
+
|
|
120
|
+
**Alternatives:** Shown when confidence < 50%
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Best Practices & Tips
|
|
125
|
+
|
|
126
|
+
- ✅ Use at design phase (before coding)
|
|
127
|
+
- ✅ Review alternatives if confidence < 50%
|
|
128
|
+
- ✅ Include pattern keywords for better matches
|
|
129
|
+
- ✅ Use interactive mode for guidance
|
|
130
|
+
- ✅ Study Panduan + File 04 (hybrid) + File 09 (examples)
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Troubleshooting
|
|
135
|
+
|
|
136
|
+
**Low confidence (<30%):**
|
|
137
|
+
- Use --interactive mode
|
|
138
|
+
- Add more keywords to description
|
|
139
|
+
- Review --list to see all options
|
|
140
|
+
|
|
141
|
+
**Wrong pattern recommended:**
|
|
142
|
+
- Check alternatives shown
|
|
143
|
+
- Try interactive mode for guided selection
|
|
144
|
+
- Keywords might be misleading (e.g., "report" → template vs analysis)
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Quick Reference
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Analysis
|
|
152
|
+
python3 pattern_detector.py "convert PDF"
|
|
153
|
+
|
|
154
|
+
# Interactive
|
|
155
|
+
python3 pattern_detector.py -i
|
|
156
|
+
|
|
157
|
+
# List all
|
|
158
|
+
python3 pattern_detector.py -l
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Next:** Panduan Komprehensif for pattern details → File 04 for hybrids → File 09 for examples.
|