skills/skillkit/SKILL.md
Toolkit for creating and validating skills and subagents. Use when: creating a new skill (fast or full mode), validating an existing skill, deciding Skills vs Subagents, migrating docs to skills, estimating token cost, or running a security scan. Triggers: "create skill", "build skill", "validate skill", "new subagent", "skills vs subagents", "estimate tokens", "security scan".
npx skillsauth add rfxlamia/skillkit skillkitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Detect user intent, route to appropriate workflow.
| Intent | Keywords | Route To | |--------|----------|----------| | Full skill creation | "create skill", "build skill", "new skill" | Section 2 | | Subagent creation | "create subagent", "build subagent", "new subagent" | Section 6 | | Validation | "validate", "check quality" | Section 3 | | Decision | "Skills vs Subagents", "decide", "which to use" | Section 4 | | Migration | "convert", "migrate doc" | Section 5 | | Single tool | "validate only", "estimate tokens", "scan" | Section 7 |
PROCEED to corresponding section after intent detection.
Stop Condition (Mandatory):
Workflow Value: Research-driven approach validates design before building. Sequential steps with checkpoints produce 9.0/10+ quality vs ad-hoc creation.
Prerequisites: Skill description provided, workspace available.
Detect or prompt for workflow mode before running the creation flow.
Stop Condition (Mandatory):
| Mode | Steps | Validation | Quality Target | Time | |------|-------|------------|----------------|------| | fast | 10 | Structural only | >=9.0/10 | <10 min | | full | 14 | Structural + Behavioral | >=9.0/10 and behavioral >=7.0 | <20 min |
No implicit default mode is allowed when mode is not explicitly known.
Use when .skillkit-mode contains fast or marker does not exist.
→ READ references/section-2-fast-creation-workflow.md IN FULL before starting.
Create a task for each step listed in that file, then follow them in order.
The outline below is a summary only — the reference file is authoritative.
Phase 1: Decision & Research
decision_helper.py)Phase 2: Creation
init.py skill <name> --mode fast)Phase 3: Structural Validation
validate_skill.py) — runs structure + security + tokens in one callPhase 4: Packaging
test_generator.py)quality_scorer.py)package_skill.py)Use when .skillkit-mode contains full.
→ READ references/section-2-full-creation-workflow.md IN FULL before starting.
Create a task for each step listed in that file, then follow them in order.
The outline below is a summary only — the reference file is authoritative.
Phase 1: Decision and Research
decision_helper.py)Phase 2: Behavioral Baseline (extra vs fast)
references/section-2-full-creation-workflow.md → section "Full Mode Behavioral Testing Protocol" (mandatory)Phase 3: Creation
init.py skill <name> --mode full)Phase 4: Behavioral Verification (extra vs fast)
references/section-2-full-creation-workflow.md → section "Full Mode Behavioral Testing Protocol" (mandatory)Phase 5: Structural Validation
validate_skill.py) — runs structure + security + tokens in one callPhase 6: Refinement (extra vs fast)
references/section-2-full-creation-workflow.md → section "Full Mode Behavioral Testing Protocol" (mandatory)Phase 7: Packaging
quality_scorer.py --format json) — behavioral score derived from Steps 3/7/10 subagent results, not from --behavioral flagpackage_skill.py)Priority order:
--mode fast or --mode full.skillkit-mode file contentfast or fullUse when: Validating existing skill
Steps: Execute validation subset (Steps 3-6)
validate_skill.py, no flags needed)Note: --security-only and --tokens-only flags are available for Section 7 individual tool use, not for workflow validation steps.
For detailed workflow: See references/section-3-validation-workflow-existing-skill.md
Use when: Uncertain if Skills is right approach
CRITICAL: Agent MUST create a temp JSON file first. The decision_helper.py script does NOT accept inline JSON strings - it requires a file path to a JSON file.
Step-by-step invocation: See references/section-4-decision-workflow-skills-vs-subagents.md
Accuracy: Highest (90-95% confidence).
Process:
decision_helper.py with json file.For detailed workflow: See references/section-4-decision-workflow-skills-vs-subagents.md
Use when: Creating new subagent (user explicitly asks or decision workflow recommends)
Prerequisites: Role definition clear, workspace available Quality Target: Clear role, comprehensive workflow, testable examples Time: <15 min with template
STEP 0: Requirements & Role Definition
STEP 1: Initialize Subagent File
python scripts/init.py subagent subagent-name --path ~/.claude/agents~/.claude/agents/subagent-name.md with template.md files (not directories)STEP 2: Define Configuration
STEP 3: Define Role and Workflow
STEP 4: Define Response Format
STEP 5: Add Examples
STEP 6: Validation
STEP 7: Testing
STEP 8: Documentation & Deployment
For detailed workflow: See references/section-6-subagent-creation-workflow.md
Use when: Converting document to skill
Process:
Stop Condition (Mandatory):
For detailed workflow: See references/section-5-migration-workflow-doc-to-skill.md
Use when: User needs single tool, not full workflow
Entry Point: User asks for specific tool like "estimate tokens" or "security scan"
Validation Tool:
python scripts/validate_skill.py skill-name/ --format json
Guide: knowledge/tools/14-validation-tools-guide.md
Token Estimator:
python scripts/validate_skill.py skill-name/ --tokens-only --format json
Guide: knowledge/tools/15-cost-tools-guide.md
Security Scanner:
python scripts/validate_skill.py skill-name/ --security-only --format json
Guide: knowledge/tools/16-security-tools-guide.md
Pattern Detector:
# Analysis mode with JSON output
python scripts/pattern_detector.py "convert PDF to Word" --format json
# List all patterns
python scripts/pattern_detector.py --list --format json
# Interactive mode (text only)
python scripts/pattern_detector.py --interactive
Guide: knowledge/tools/17-pattern-tools-guide.md
Decision Helper:
# Analyze use case (JSON output - agent-layer default)
python scripts/decision_helper.py --analyze "code review with validation"
# Show decision criteria (JSON output)
python scripts/decision_helper.py --show-criteria --format json
# Text mode for human reading (debugging)
python scripts/decision_helper.py --analyze "description" --format text
Guide: knowledge/tools/18-decision-helper-guide.md
Test Generator (v1.2: Parameter update):
python scripts/test_generator.py skill-name/ --test-format pytest --format json
--test-format: Test framework (pytest/unittest/plain, default: pytest)--format: Output style (text/json, default: text)--output parameter still works (deprecated)Guide: knowledge/tools/19-test-generator-guide.md
Split Skill:
python scripts/split_skill.py skill-name/ --format json
Guide: knowledge/tools/20-split-skill-guide.md
Quality Scorer:
python scripts/quality_scorer.py skill-name/ --format json
Guide: knowledge/tools/21-quality-scorer-guide.md
Migration Helper:
python scripts/migration_helper.py doc.md --format json
Guide: knowledge/tools/22-migration-helper-guide.md
Subagent Initializer (NEW):
python scripts/init.py subagent subagent-name --path /path/to/subagents
Guide: references/section-6-subagent-creation-workflow.md
All 9 tools support --format json. Text mode still available via --format text (backward compatible). decision_helper defaults to JSON for automation.
JSON Output Structure:
{
"status": "success" | "error",
"tool": "tool_name",
"timestamp": "ISO-8601",
"data": { /* tool-specific results */ }
}
File & Reference Validation:
validate_skill.py now comprehensively checks file references (markdown links, code refs, path patterns)package_skill.py validates references before packaging, detects orphaned filesContent Budget Enforcement (v1.2+):
Execution Planning (v1.2+):
Quality Scorer Context:
| Skill Type | Recommended Mode | Why | |------------|------------------|-----| | TDD or discipline skill | full | must resist rationalization under pressure | | Code pattern skill | fast | structural checks are usually sufficient | | API reference skill | fast | primarily retrieval accuracy | | Workflow orchestration skill | full | complex flow benefits from pressure checks | | Debugging technique skill | fast | concise technique with clear method |
Full mode adds behavioral testing (pressure scenarios). Use it when discipline enforcement is core to the skill's purpose.
Strategic context loaded on-demand.
For complete reference map: See references/section-7-knowledge-reference-map.md
Follow workflows sequentially. Sequential steps with gates produce 9.0/10+ quality. Deviations are allowed with user justification.
Flexible entry points:
Load reference files on-demand from references/ when detailed implementation guidance is needed.
tools
One sentence: what this skill does and when to invoke it. Use for: [list 2-3 trigger phrases users would naturally type].
development
Pre-build orientation for skill creators. Answers "what are skills?", "should I make one?", and "is my skill good enough?" before you start building. Use for: understand skills, decide skills vs subagents, validate an existing skill. When ready to actually build, invoke /skillkit directly instead.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------