mega-brain-ai 1.1.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.
Potentially problematic release.
This version of mega-brain-ai might be problematic. Click here for more details.
- package/.claude/CLAUDE.md +155 -0
- package/.claude/commands/agents.md +161 -0
- package/.claude/commands/ask.md +117 -0
- package/.claude/commands/benchmark.md +224 -0
- package/.claude/commands/chat.md +343 -0
- package/.claude/commands/compare.md +116 -0
- package/.claude/commands/conclave.md +194 -0
- package/.claude/commands/config.md +133 -0
- package/.claude/commands/council.md +194 -0
- package/.claude/commands/create-agent.md +452 -0
- package/.claude/commands/debate.md +157 -0
- package/.claude/commands/documentation/create-architecture-documentation.md +175 -0
- package/.claude/commands/dossiers.md +180 -0
- package/.claude/commands/evolve.md +223 -0
- package/.claude/commands/extract-dna.md +170 -0
- package/.claude/commands/extract-knowledge.md +507 -0
- package/.claude/commands/inbox.md +296 -0
- package/.claude/commands/ingest-empresa.md +191 -0
- package/.claude/commands/ingest.md +182 -0
- package/.claude/commands/jarvis-briefing.md +67 -0
- package/.claude/commands/jarvis-control.md +169 -0
- package/.claude/commands/jarvis-full.md +181 -0
- package/.claude/commands/jarvis.md +212 -0
- package/.claude/commands/ler-drive.md +212 -0
- package/.claude/commands/log.md +158 -0
- package/.claude/commands/loop.md +133 -0
- package/.claude/commands/loops.md +73 -0
- package/.claude/commands/mission-autopilot.md +538 -0
- package/.claude/commands/mission.md +353 -0
- package/.claude/commands/process-inbox.md +148 -0
- package/.claude/commands/process-jarvis.md +3036 -0
- package/.claude/commands/process-video.md +131 -0
- package/.claude/commands/rag-search.md +78 -0
- package/.claude/commands/resume.md +33 -0
- package/.claude/commands/save.md +38 -0
- package/.claude/commands/scan-inbox.md +125 -0
- package/.claude/commands/setup.md +99 -0
- package/.claude/commands/system-digest.md +243 -0
- package/.claude/commands/verify.md +182 -0
- package/.claude/commands/view-dna.md +169 -0
- package/.claude/hooks/agent_doctor.py +433 -0
- package/.claude/hooks/agent_memory_persister.py +203 -0
- package/.claude/hooks/auto_formatter.py +158 -0
- package/.claude/hooks/checkpoint_writer.py +244 -0
- package/.claude/hooks/claude_md_guard.py +146 -0
- package/.claude/hooks/creation_validator.py +357 -0
- package/.claude/hooks/enforce_dual_location.py +501 -0
- package/.claude/hooks/enforce_plan_mode.py +220 -0
- package/.claude/hooks/inbox_age_alert.py +367 -0
- package/.claude/hooks/jarvis_briefing.py +506 -0
- package/.claude/hooks/ledger_updater.py +301 -0
- package/.claude/hooks/memory_hints_injector.py +251 -0
- package/.claude/hooks/memory_updater.py +202 -0
- package/.claude/hooks/multi_agent_hook.py +464 -0
- package/.claude/hooks/notification_system.py +120 -0
- package/.claude/hooks/pattern_analyzer.py +526 -0
- package/.claude/hooks/pending_tracker.py +188 -0
- package/.claude/hooks/post_batch_cascading.py +1740 -0
- package/.claude/hooks/post_output_validator.py +358 -0
- package/.claude/hooks/post_tool_use.py +120 -0
- package/.claude/hooks/post_write_validator.py +200 -0
- package/.claude/hooks/quality_watchdog.py +394 -0
- package/.claude/hooks/ralph_wiggum.py +277 -0
- package/.claude/hooks/session-source-sync.py +218 -0
- package/.claude/hooks/session_autosave_v2.py +1135 -0
- package/.claude/hooks/session_end.py +203 -0
- package/.claude/hooks/session_start.py +939 -0
- package/.claude/hooks/skill_indexer.py +48 -0
- package/.claude/hooks/skill_router.py +358 -0
- package/.claude/hooks/stop_hook_completeness.py +178 -0
- package/.claude/hooks/subagent_tracker.py +163 -0
- package/.claude/hooks/token_checkpoint.py +584 -0
- package/.claude/hooks/user_prompt_submit.py +125 -0
- package/.claude/rules/ANTHROPIC-STANDARDS.md +384 -0
- package/.claude/rules/CLAUDE-LITE.md +201 -0
- package/.claude/rules/RULE-GROUP-1.md +320 -0
- package/.claude/rules/RULE-GROUP-2.md +307 -0
- package/.claude/rules/RULE-GROUP-3.md +248 -0
- package/.claude/rules/RULE-GROUP-4.md +427 -0
- package/.claude/rules/RULE-GROUP-5.md +388 -0
- package/.claude/rules/RULE-GROUP-6.md +387 -0
- package/.claude/rules/logging.md +53 -0
- package/.claude/rules/mcp-governance.md +128 -0
- package/.claude/rules/pipeline.md +60 -0
- package/.claude/rules/state-management.md +93 -0
- package/.claude/scripts/apply-tags.py +77 -0
- package/.claude/scripts/batch-extract-transcriptions.py +132 -0
- package/.claude/scripts/build-complete-index.py +250 -0
- package/.claude/scripts/build-planilha-index.py +170 -0
- package/.claude/scripts/complete-tag-matching.py +250 -0
- package/.claude/scripts/deduplicate-inbox.py +139 -0
- package/.claude/scripts/docx-xml-extractor.py +141 -0
- package/.claude/scripts/extract-docx-text.py +58 -0
- package/.claude/scripts/extract-single-transcription.py +74 -0
- package/.claude/scripts/extract_docx_from_gdrive.py +77 -0
- package/.claude/scripts/organized-downloader.py +246 -0
- package/.claude/scripts/planilha-tagger.py +187 -0
- package/.claude/scripts/revert-tags.py +70 -0
- package/.claude/scripts/source-sync.py +265 -0
- package/.claude/scripts/tag-inbox-files.py +276 -0
- package/.claude/scripts/tag-inbox-v2.py +253 -0
- package/.claude/scripts/test-extraction.py +35 -0
- package/.claude/scripts/test-full-extraction.py +74 -0
- package/.claude/skills/00-SKILL-CREATOR/SKILL.md +186 -0
- package/.claude/skills/01-SKILL-DOCS-MEGABRAIN/SKILL.md +251 -0
- package/.claude/skills/02-SKILL-PYTHON-MEGABRAIN/SKILL.md +323 -0
- package/.claude/skills/03-SKILL-AGENT-CREATION/SKILL.md +374 -0
- package/.claude/skills/04-SKILL-KNOWLEDGE-EXTRACTION/SKILL.md +318 -0
- package/.claude/skills/05-SKILL-PIPELINE-JARVIS/SKILL.md +430 -0
- package/.claude/skills/06-SKILL-BRAINSTORMING/SKILL.md +72 -0
- package/.claude/skills/07-SKILL-DISPATCHING-PARALLEL-AGENTS/SKILL.md +193 -0
- package/.claude/skills/08-SKILL-EXECUTING-PLANS/SKILL.md +114 -0
- package/.claude/skills/09-SKILL-WRITING-PLANS/SKILL.md +184 -0
- package/.claude/skills/10-SKILL-VERIFICATION-BEFORE-COMPLETION/SKILL.md +130 -0
- package/.claude/skills/11-SKILL-USING-SUPERPOWERS/SKILL.md +105 -0
- package/.claude/skills/DETECTION-PROTOCOL.md +217 -0
- package/.claude/skills/README.md +240 -0
- package/.claude/skills/SKILL-REGISTRY.md +284 -0
- package/.claude/skills/SKILL-SUGGESTIONS.md +114 -0
- package/.claude/skills/_TEMPLATES/SKILL-WRITER-GUIDE.md +385 -0
- package/.claude/skills/chronicler/SKILL.md +146 -0
- package/.claude/skills/chronicler/chronicler_core.py +468 -0
- package/.claude/skills/code-review/SKILL.md +160 -0
- package/.claude/skills/council/SKILL.md +210 -0
- package/.claude/skills/executor/SKILL.md +161 -0
- package/.claude/skills/fase-2-5-tagging/SKILL.md +182 -0
- package/.claude/skills/feature-dev/SKILL.md +154 -0
- package/.claude/skills/finance-agent/SKILL.md +137 -0
- package/.claude/skills/frontend-design/SKILL.md +165 -0
- package/.claude/skills/gdrive-transcription-downloader/SKILL.md +249 -0
- package/.claude/skills/gemini-fallback/SKILL.md +67 -0
- package/.claude/skills/gemini-fallback/gemini_fetch.py +0 -0
- package/.claude/skills/gha/SKILL.md +96 -0
- package/.claude/skills/gha/gha_diagnostic.py +227 -0
- package/.claude/skills/github-workflow/SKILL.md +190 -0
- package/.claude/skills/hookify/SKILL.md +134 -0
- package/.claude/skills/hybrid-source-reading/SKILL.md +265 -0
- package/.claude/skills/jarvis/SKILL.md +546 -0
- package/.claude/skills/jarvis-briefing/SKILL.md +340 -0
- package/.claude/skills/ler-planilha/SKILL.md +281 -0
- package/.claude/skills/plugin-dev/SKILL.md +176 -0
- package/.claude/skills/pr-review-toolkit/SKILL.md +178 -0
- package/.claude/skills/resume/SKILL.md +61 -0
- package/.claude/skills/save/SKILL.md +87 -0
- package/.claude/skills/skill-writer/SKILL.md +153 -0
- package/.claude/skills/skill-writer/examples.md +191 -0
- package/.claude/skills/skill-writer/troubleshooting.md +205 -0
- package/.claude/skills/smart-download-tagger/SKILL.md +148 -0
- package/.claude/skills/source-sync/SKILL.md +240 -0
- package/.claude/skills/sync-docs/SKILL.md +193 -0
- package/.claude/skills/sync-docs/config.json +37 -0
- package/.claude/skills/sync-docs/gdrive_sync.py +358 -0
- package/.claude/skills/sync-docs/reauth.py +71 -0
- package/.claude/skills/talent-agent/SKILL.md +183 -0
- package/.claude/skills/verify/SKILL.md +154 -0
- package/.claude/skills/verify/verify_runner.py +0 -0
- package/.claude/skills/verify-6-levels/SKILL.md +234 -0
- package/.claude/templates/BATCH-LOG-TEMPLATE.md +221 -0
- package/.claudeignore +9 -0
- package/.gitattributes +4 -0
- package/.github/layer1-allowlist.txt +80 -0
- package/.github/layer2-manifest.txt +40 -0
- package/.gitignore +219 -0
- package/README.md +1210 -0
- package/agents/_templates/INDEX.md +741 -0
- package/agents/_templates/TEMPLATE-AGENT-MD-ULTRA-ROBUSTO-V3.md +2399 -0
- package/agents/boardroom/CHECKLIST-MASTER.md +281 -0
- package/agents/boardroom/INTEGRATION-GUIDE.md +406 -0
- package/agents/boardroom/README.md +238 -0
- package/agents/boardroom/config/BOARDROOM-CONFIG.md +186 -0
- package/agents/boardroom/config/TTS-INTEGRATION.md +258 -0
- package/agents/boardroom/config/VOICE-PROFILES.md +624 -0
- package/agents/boardroom/config/voice_mapping.json +128 -0
- package/agents/boardroom/scripts/audio_generator.py +375 -0
- package/agents/boardroom/scripts/audio_generator_edge.py +353 -0
- package/agents/boardroom/scripts/jarvis_boardroom_hook.py +415 -0
- package/agents/boardroom/scripts/notebooklm_generator.py +578 -0
- package/agents/boardroom/templates/EPISODE-TEMPLATE.md +367 -0
- package/agents/boardroom/templates/scene-templates/SCENE-AGENT-DEBATE.md +252 -0
- package/agents/boardroom/templates/scene-templates/SCENE-COUNCIL.md +270 -0
- package/agents/boardroom/templates/scene-templates/SCENE-DNA-CONSULTATION.md +126 -0
- package/agents/boardroom/templates/scene-templates/SCENE-QUESTION.md +174 -0
- package/agents/boardroom/workflows/WORKFLOW-AUDIO-GENERATION.md +421 -0
- package/agents/constitution/BASE-CONSTITUTION.md +254 -0
- package/agents/council/CRITIC.md +197 -0
- package/agents/council/DEVILS-ADVOCATE.md +274 -0
- package/agents/council/SYNTHESIZER.md +293 -0
- package/agents/council/advogado-do-diabo/AGENT.md +489 -0
- package/agents/council/advogado-do-diabo/SOUL.md +100 -0
- package/agents/council/critico-metodologico/AGENT.md +670 -0
- package/agents/council/critico-metodologico/SOUL.md +107 -0
- package/agents/council/sintetizador/AGENT.md +558 -0
- package/agents/council/sintetizador/SOUL.md +94 -0
- package/agents/persons/_example/AGENT-EXAMPLE.md +42 -0
- package/agents/persons/_example/DNA-EXAMPLE.yaml +61 -0
- package/agents/protocols/AGENT-COGNITION-PROTOCOL.md +779 -0
- package/agents/protocols/AGENT-INTEGRITY-PROTOCOL.md +692 -0
- package/agents/protocols/BATCH-VISUAL-PROTOCOL.md +841 -0
- package/agents/protocols/DNA-CONFIG-TEMPLATE.yaml +181 -0
- package/agents/protocols/DNA-EXTRACTION-PROTOCOL.md +370 -0
- package/agents/protocols/EPISTEMIC-PROTOCOL.md +333 -0
- package/agents/protocols/LOG-STRUCTURE-PROTOCOL.md +65 -0
- package/agents/protocols/MEMORY-PROTOCOL.md +567 -0
- package/agents/protocols/NARRATIVE-SYNTHESIS-PROTOCOL.md +278 -0
- package/agents/protocols/PHASE-4-VERIFICATION-CHECKPOINT.md +146 -0
- package/agents/protocols/SOUL-TEMPLATE.md +416 -0
- package/agents/protocols/TEMPLATE-EVOLUTION-PROTOCOL.md +544 -0
- package/agents/protocols/VISUAL-DIFF-PROTOCOL.md +159 -0
- package/agents/sua-empresa/README.md +44 -0
- package/agents/sua-empresa/_example/jds/EXAMPLE-JD.md +42 -0
- package/agents/sua-empresa/_example/org/EXAMPLE-ORG.md +32 -0
- package/agents/sua-empresa/_example/roles/EXAMPLE-ROLE.md +38 -0
- package/bin/cli.js +2 -0
- package/bin/lib/ascii-art.js +234 -0
- package/bin/lib/installer.js +402 -0
- package/bin/lib/setup-wizard.js +95 -0
- package/bin/lib/validate-email.js +109 -0
- package/bin/mega-brain.js +97 -0
- package/bin/push.js +342 -0
- package/bin/templates/env.example +38 -0
- package/inbox/.gitkeep +0 -0
- package/integrations/README.md +46 -0
- package/integrations/mcps/MCP-REGISTRY.md +56 -0
- package/integrations/mcps/excalidraw/CONFIG.md +56 -0
- package/integrations/mcps/gdrive/CONFIG.md +38 -0
- package/knowledge/dna/.gitkeep +0 -0
- package/knowledge/dossiers/persons/.gitkeep +0 -0
- package/knowledge/dossiers/persons/DOSSIER-EXAMPLE.md +49 -0
- package/knowledge/dossiers/system/.gitkeep +0 -0
- package/knowledge/dossiers/themes/.gitkeep +0 -0
- package/knowledge/playbooks/.gitkeep +0 -0
- package/knowledge/playbooks/PLAYBOOK-EXAMPLE.md +50 -0
- package/knowledge/sources/.gitkeep +0 -0
- package/logs/.gitkeep +0 -0
- package/package.json +128 -0
- package/processing/canonical/.gitkeep +0 -0
- package/processing/chunks/.gitkeep +0 -0
- package/processing/insights/.gitkeep +0 -0
- package/processing/narratives/.gitkeep +0 -0
- package/reference/CONSELHO.md +337 -0
- package/reference/CONTEXT7_README.md +28 -0
- package/reference/JARVIS-LOGGING-PROTOCOL.md +380 -0
- package/reference/QUICK-START.md +197 -0
- package/reference/README-RALPH-CASCATEAMENTO.md +207 -0
- package/reference/TEMPLATE-MASTER.md +727 -0
- package/reference/prds/prd-jarvis-mega-brain-v3.md +1305 -0
- package/reference/templates/phase5/IMPLEMENTATION-GUIDE.md +355 -0
- package/reference/templates/phase5/MOGA-BRAIN-PHASE5-TEMPLATES.md +1284 -0
- package/reference/templates/phase5/README.md +165 -0
- package/reference/workflow-claude-code-boris-cherny-continuous-claude.md +2232 -0
- package/system/database/001_moneyclub_buyers.sql +160 -0
- package/system/database/002_premium_token.sql +97 -0
- package/system/database/apply-migration.mjs +129 -0
- package/system/docs/MEGA-BRAIN-DEMO-COMPLETA.md +1226 -0
- package/system/docs/MEGA-BRAIN-MANIFESTO-COMPLETO.md +1054 -0
- package/system/docs/MOGA-BRAIN-EXPLICACAO-COMPLETA.md +791 -0
- package/system/docs/STRATEGIC-INTEGRATION-GUIDE.md +725 -0
- package/system/docs/architecture/01-system-context.md +136 -0
- package/system/docs/architecture/02-components.md +225 -0
- package/system/docs/architecture/03-data-flow.md +235 -0
- package/system/docs/architecture/04-integrations.md +283 -0
- package/system/docs/architecture/README.md +71 -0
- package/system/docs/architecture/diagrams/component-diagram.mmd +50 -0
- package/system/docs/architecture/diagrams/data-flow.mmd +39 -0
- package/system/docs/architecture/diagrams/system-overview.mmd +68 -0
- package/system/protocols/AGENT-AUTHORITY.md +217 -0
- package/system/protocols/CONSTITUICAO-BASE.md +115 -0
- package/system/protocols/CONSTITUTION.md +231 -0
- package/system/protocols/GOVERNANCE-MAP.md +123 -0
- package/system/protocols/HOOK-SECURITY-THREAT-MODEL.md +152 -0
- package/system/protocols/ORQUESTRACAO-PROTOCOL.md +215 -0
- package/system/protocols/_archive/CHUNKING-PROTOCOL.md +207 -0
- package/system/protocols/_archive/ENTITY-RESOLUTION-PROTOCOL.md +269 -0
- package/system/protocols/_archive/INSIGHT-EXTRACTION-PROTOCOL.md +257 -0
- package/system/protocols/_archive/NARRATIVE-SYNTHESIS-PROTOCOL.md +290 -0
- package/system/protocols/agents/AGENT-INTERACTION.md +315 -0
- package/system/protocols/agents/CORTEX-PROTOCOL.md +520 -0
- package/system/protocols/agents/EPISTEMIC-PROTOCOL.md +465 -0
- package/system/protocols/agents/MEMORY-PROTOCOL.md +366 -0
- package/system/protocols/agents/WAR-ROOM.md +355 -0
- package/system/protocols/company/COMPANY-DOCUMENT-PROTOCOL.md +793 -0
- package/system/protocols/company/COMPANY-ENRICHMENT-PROTOCOL.md +679 -0
- package/system/protocols/conclave/CONCLAVE-LOG-TEMPLATE-v2.md +309 -0
- package/system/protocols/conclave/CONCLAVE-PROTOCOL.md +518 -0
- package/system/protocols/conclave/DEBATE-DYNAMICS-CONFIG.yaml +322 -0
- package/system/protocols/conclave/DEBATE-DYNAMICS-PROTOCOL.md +613 -0
- package/system/protocols/conclave/DEBATE-PROTOCOL.md +323 -0
- package/system/protocols/council/COUNCIL-LOG-TEMPLATE-v2.md +309 -0
- package/system/protocols/council/COUNCIL-PROTOCOL.md +518 -0
- package/system/protocols/council/DEBATE-DYNAMICS-CONFIG.yaml +322 -0
- package/system/protocols/council/DEBATE-DYNAMICS-PROTOCOL.md +613 -0
- package/system/protocols/council/DEBATE-PROTOCOL.md +323 -0
- package/system/protocols/dna/DNA-EXTRACTION-PROTOCOL.md +1214 -0
- package/system/protocols/dna/ENRICHMENT-PROTOCOL.md +408 -0
- package/system/protocols/dna/REASONING-MODEL-PROTOCOL.md +331 -0
- package/system/protocols/pipeline/DOSSIER-COMPILATION-PROTOCOL.md +790 -0
- package/system/protocols/pipeline/NARRATIVE-METABOLISM-PROTOCOL.md +292 -0
- package/system/protocols/pipeline/PIPELINE-JARVIS-v2.1.md +606 -0
- package/system/protocols/pipeline/PROMPT-1.1-CHUNKING.md +154 -0
- package/system/protocols/pipeline/PROMPT-1.2-ENTITY-RESOLUTION.md +186 -0
- package/system/protocols/pipeline/PROMPT-2.1-DNA-TAGS-INCREMENT.md +208 -0
- package/system/protocols/pipeline/PROMPT-2.1-INSIGHT-EXTRACTION.md +191 -0
- package/system/protocols/pipeline/PROMPT-3.1-NARRATIVE-SYNTHESIS.md +331 -0
- package/system/protocols/pipeline/SOURCES-COMPILATION-PROTOCOL.md +340 -0
- package/system/protocols/system/AUTO-LOG-PROTOCOL.md +369 -0
- package/system/protocols/system/CHECKPOINT-ENFORCEMENT.md +176 -0
- package/system/protocols/system/ENFORCEMENT.md +435 -0
- package/system/protocols/system/LOG-TEMPLATES.md +1068 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Plugin Development Skill
|
|
2
|
+
|
|
3
|
+
> **Auto-Trigger:** Quando usuário quiser criar plugin, desenvolver extensão, criar skill customizada
|
|
4
|
+
> **Keywords:** "plugin", "desenvolver plugin", "criar plugin", "extensão", "criar skill", "plugin-dev", "create-plugin"
|
|
5
|
+
> **Prioridade:** ALTA
|
|
6
|
+
> **Namespace:** [OFFICIAL]
|
|
7
|
+
> **Tools:** Read, Write, Edit, Glob, Grep, Bash, Task
|
|
8
|
+
|
|
9
|
+
## Quando NÃO Ativar
|
|
10
|
+
|
|
11
|
+
- Uso de plugins existentes sem modificação
|
|
12
|
+
- Debugging de plugins já implementados
|
|
13
|
+
- Perguntas gerais sobre plugins
|
|
14
|
+
- Quando usuário explicitamente pedir skill diferente
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Core Purpose
|
|
19
|
+
|
|
20
|
+
Comprehensive toolkit for developing Claude Code plugins. Provides structured 8-phase
|
|
21
|
+
workflow from concept to deployment with 7 core skills for plugin creation.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## The 7 Core Skills
|
|
26
|
+
|
|
27
|
+
| Skill | Purpose |
|
|
28
|
+
|-------|---------|
|
|
29
|
+
| **Architecture** | Design plugin structure and interfaces |
|
|
30
|
+
| **Implementation** | Write plugin code following best practices |
|
|
31
|
+
| **Testing** | Create comprehensive test suites |
|
|
32
|
+
| **Documentation** | Write clear plugin documentation |
|
|
33
|
+
| **Integration** | Connect with Claude Code systems |
|
|
34
|
+
| **Optimization** | Improve performance and reliability |
|
|
35
|
+
| **Deployment** | Package and distribute plugins |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## The 8 Phases of Plugin Creation
|
|
40
|
+
|
|
41
|
+
### Phase 1: Concept
|
|
42
|
+
|
|
43
|
+
- Define plugin purpose
|
|
44
|
+
- Identify target users
|
|
45
|
+
- List core features
|
|
46
|
+
- Set success criteria
|
|
47
|
+
|
|
48
|
+
### Phase 2: Research
|
|
49
|
+
|
|
50
|
+
- Study similar plugins
|
|
51
|
+
- Review Claude Code plugin API
|
|
52
|
+
- Identify dependencies
|
|
53
|
+
- Note limitations
|
|
54
|
+
|
|
55
|
+
### Phase 3: Design
|
|
56
|
+
|
|
57
|
+
- Create plugin architecture
|
|
58
|
+
- Define file structure
|
|
59
|
+
- Design interfaces
|
|
60
|
+
- Plan extension points
|
|
61
|
+
|
|
62
|
+
### Phase 4: Scaffold
|
|
63
|
+
|
|
64
|
+
- Create directory structure
|
|
65
|
+
- Initialize configuration files
|
|
66
|
+
- Set up development environment
|
|
67
|
+
- Create boilerplate code
|
|
68
|
+
|
|
69
|
+
### Phase 5: Implementation
|
|
70
|
+
|
|
71
|
+
- Write core functionality
|
|
72
|
+
- Implement features incrementally
|
|
73
|
+
- Handle errors gracefully
|
|
74
|
+
- Follow coding standards
|
|
75
|
+
|
|
76
|
+
### Phase 6: Testing
|
|
77
|
+
|
|
78
|
+
- Write unit tests
|
|
79
|
+
- Create integration tests
|
|
80
|
+
- Test edge cases
|
|
81
|
+
- Verify error handling
|
|
82
|
+
|
|
83
|
+
### Phase 7: Documentation
|
|
84
|
+
|
|
85
|
+
- Write README
|
|
86
|
+
- Document API/interfaces
|
|
87
|
+
- Create usage examples
|
|
88
|
+
- Add troubleshooting guide
|
|
89
|
+
|
|
90
|
+
### Phase 8: Deployment
|
|
91
|
+
|
|
92
|
+
- Package plugin
|
|
93
|
+
- Version appropriately
|
|
94
|
+
- Publish/distribute
|
|
95
|
+
- Monitor feedback
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Plugin Structure Template
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
plugin-name/
|
|
103
|
+
├── SKILL.md # Main skill definition
|
|
104
|
+
├── README.md # Documentation
|
|
105
|
+
├── package.json # If npm-based
|
|
106
|
+
├── src/
|
|
107
|
+
│ ├── index.ts # Entry point
|
|
108
|
+
│ ├── handlers/ # Event handlers
|
|
109
|
+
│ └── utils/ # Helper functions
|
|
110
|
+
├── tests/
|
|
111
|
+
│ └── *.test.ts # Test files
|
|
112
|
+
└── examples/
|
|
113
|
+
└── *.md # Usage examples
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## SKILL.md Template
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
# [Plugin Name] Skill
|
|
122
|
+
|
|
123
|
+
> **Auto-Trigger:** [When to activate]
|
|
124
|
+
> **Keywords:** "keyword1", "keyword2", "keyword3"
|
|
125
|
+
> **Prioridade:** [ALTA | MÉDIA | BAIXA]
|
|
126
|
+
> **Tools:** [List of tools used]
|
|
127
|
+
|
|
128
|
+
## Quando NÃO Ativar
|
|
129
|
+
|
|
130
|
+
- [Situation 1]
|
|
131
|
+
- [Situation 2]
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Core Purpose
|
|
136
|
+
|
|
137
|
+
[Brief description of what the plugin does]
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## [Main Content Sections]
|
|
142
|
+
|
|
143
|
+
[Plugin-specific documentation]
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Example Prompts This Skill Handles
|
|
148
|
+
|
|
149
|
+
- "[Example 1]"
|
|
150
|
+
- "[Example 2]"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Command
|
|
156
|
+
|
|
157
|
+
Use `/plugin-dev:create-plugin` to start the guided plugin creation workflow.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Example Prompts This Skill Handles
|
|
162
|
+
|
|
163
|
+
- "Crie um plugin para processar PDFs"
|
|
164
|
+
- "Develop a plugin for database migrations"
|
|
165
|
+
- "Quero criar uma skill para análise de logs"
|
|
166
|
+
- "Build an extension for API testing"
|
|
167
|
+
- "Desenvolva um plugin de formatação de código"
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Integration Notes
|
|
172
|
+
|
|
173
|
+
This skill is part of the **Claude Code Official Skills** collection.
|
|
174
|
+
Namespace: `[OFFICIAL]` - Distinguishes from Mega Brain custom skills.
|
|
175
|
+
|
|
176
|
+
For custom Mega Brain skills, see: `/.claude/skills/`
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# PR Review Toolkit Skill
|
|
2
|
+
|
|
3
|
+
> **Auto-Trigger:** Quando usuário pedir análise de PR, revisão de pull request, análise de comentários, hunting de falhas
|
|
4
|
+
> **Keywords:** "PR", "pull request", "revisar PR", "análise de PR", "PR review", "comment analyzer", "silent failure"
|
|
5
|
+
> **Prioridade:** ALTA
|
|
6
|
+
> **Namespace:** [OFFICIAL]
|
|
7
|
+
> **Tools:** Read, Glob, Grep, Bash, Task
|
|
8
|
+
|
|
9
|
+
## Quando NÃO Ativar
|
|
10
|
+
|
|
11
|
+
- Code review geral sem contexto de PR
|
|
12
|
+
- Criação de PRs (usar git workflow)
|
|
13
|
+
- Perguntas sobre PRs sem análise
|
|
14
|
+
- Quando usuário explicitamente pedir skill diferente
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Core Purpose
|
|
19
|
+
|
|
20
|
+
Bundle of 6 specialized agents for comprehensive PR analysis. Provides deep inspection
|
|
21
|
+
of comments, tests, silent failures, type design, code quality, and simplification opportunities.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## The 6 Specialized Agents
|
|
26
|
+
|
|
27
|
+
### 1. Comment Analyzer
|
|
28
|
+
|
|
29
|
+
**Focus:** PR comment triage
|
|
30
|
+
|
|
31
|
+
- Categorizes comments by severity
|
|
32
|
+
- Identifies blocking vs non-blocking
|
|
33
|
+
- Summarizes discussion threads
|
|
34
|
+
- Highlights unresolved items
|
|
35
|
+
- Tracks comment resolution status
|
|
36
|
+
|
|
37
|
+
### 2. PR Test Analyzer
|
|
38
|
+
|
|
39
|
+
**Focus:** Test coverage validation
|
|
40
|
+
|
|
41
|
+
- Identifies untested code paths
|
|
42
|
+
- Suggests missing test cases
|
|
43
|
+
- Validates test quality
|
|
44
|
+
- Checks edge case coverage
|
|
45
|
+
- Reviews test naming/structure
|
|
46
|
+
|
|
47
|
+
### 3. Silent Failure Hunter
|
|
48
|
+
|
|
49
|
+
**Focus:** Hidden bug detection
|
|
50
|
+
|
|
51
|
+
- Finds swallowed exceptions
|
|
52
|
+
- Identifies missing error handling
|
|
53
|
+
- Detects async/await issues
|
|
54
|
+
- Spots race conditions
|
|
55
|
+
- Finds resource leaks
|
|
56
|
+
|
|
57
|
+
### 4. Type Design Analyzer
|
|
58
|
+
|
|
59
|
+
**Focus:** Type system quality
|
|
60
|
+
|
|
61
|
+
- Reviews type definitions
|
|
62
|
+
- Identifies type safety issues
|
|
63
|
+
- Suggests better type patterns
|
|
64
|
+
- Checks generic usage
|
|
65
|
+
- Validates interface design
|
|
66
|
+
|
|
67
|
+
### 5. Code Reviewer
|
|
68
|
+
|
|
69
|
+
**Focus:** General code quality
|
|
70
|
+
|
|
71
|
+
- Style consistency
|
|
72
|
+
- Best practices adherence
|
|
73
|
+
- Pattern compliance
|
|
74
|
+
- Documentation quality
|
|
75
|
+
- Naming conventions
|
|
76
|
+
|
|
77
|
+
### 6. Code Simplifier
|
|
78
|
+
|
|
79
|
+
**Focus:** Complexity reduction
|
|
80
|
+
|
|
81
|
+
- Identifies over-engineering
|
|
82
|
+
- Suggests simplifications
|
|
83
|
+
- Removes dead code
|
|
84
|
+
- Consolidates duplicates
|
|
85
|
+
- Improves readability
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Agent Activation
|
|
90
|
+
|
|
91
|
+
Each agent can be invoked individually or as a full suite:
|
|
92
|
+
|
|
93
|
+
| Command | Agents Activated |
|
|
94
|
+
|---------|------------------|
|
|
95
|
+
| `/pr-review:full` | All 6 agents |
|
|
96
|
+
| `/pr-review:comments` | Comment Analyzer |
|
|
97
|
+
| `/pr-review:tests` | PR Test Analyzer |
|
|
98
|
+
| `/pr-review:failures` | Silent Failure Hunter |
|
|
99
|
+
| `/pr-review:types` | Type Design Analyzer |
|
|
100
|
+
| `/pr-review:quality` | Code Reviewer |
|
|
101
|
+
| `/pr-review:simplify` | Code Simplifier |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Output Format
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
╔══════════════════════════════════════════════════════════════════════════════╗
|
|
109
|
+
║ PR REVIEW TOOLKIT REPORT ║
|
|
110
|
+
╠══════════════════════════════════════════════════════════════════════════════╣
|
|
111
|
+
║ PR: #[number] - [title] ║
|
|
112
|
+
║ Agents Run: [list] ║
|
|
113
|
+
║ Files Analyzed: [N] ║
|
|
114
|
+
╚══════════════════════════════════════════════════════════════════════════════╝
|
|
115
|
+
|
|
116
|
+
┌─ COMMENT ANALYZER ──────────────────────────────────────────────────────────┐
|
|
117
|
+
│ Blocking: [N] | Suggestions: [N] | Resolved: [N] │
|
|
118
|
+
│ │
|
|
119
|
+
│ BLOCKING ITEMS: │
|
|
120
|
+
│ - [item description] @ file:line │
|
|
121
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
122
|
+
|
|
123
|
+
┌─ SILENT FAILURE HUNTER ─────────────────────────────────────────────────────┐
|
|
124
|
+
│ Potential Issues Found: [N] │
|
|
125
|
+
│ │
|
|
126
|
+
│ ⚠️ [issue description] │
|
|
127
|
+
│ Location: file:line │
|
|
128
|
+
│ Risk: [HIGH | MEDIUM | LOW] │
|
|
129
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
130
|
+
|
|
131
|
+
┌─ TEST ANALYZER ─────────────────────────────────────────────────────────────┐
|
|
132
|
+
│ Coverage Delta: [+/-X%] │
|
|
133
|
+
│ Missing Tests: [N] │
|
|
134
|
+
│ │
|
|
135
|
+
│ SUGGESTED TESTS: │
|
|
136
|
+
│ - [test case description] │
|
|
137
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
138
|
+
|
|
139
|
+
┌─ TYPE DESIGN ANALYZER ──────────────────────────────────────────────────────┐
|
|
140
|
+
│ Type Issues: [N] │
|
|
141
|
+
│ │
|
|
142
|
+
│ RECOMMENDATIONS: │
|
|
143
|
+
│ - [recommendation] │
|
|
144
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
145
|
+
|
|
146
|
+
┌─ CODE SIMPLIFIER ───────────────────────────────────────────────────────────┐
|
|
147
|
+
│ Simplification Opportunities: [N] │
|
|
148
|
+
│ │
|
|
149
|
+
│ SUGGESTIONS: │
|
|
150
|
+
│ - [simplification suggestion] │
|
|
151
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
152
|
+
|
|
153
|
+
┌─ SUMMARY ───────────────────────────────────────────────────────────────────┐
|
|
154
|
+
│ ✅ Ready to merge: [YES | NO | NEEDS WORK] │
|
|
155
|
+
│ 📋 Action items: [N] │
|
|
156
|
+
│ ⏱️ Estimated fix time: [estimate] │
|
|
157
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Example Prompts This Skill Handles
|
|
163
|
+
|
|
164
|
+
- "Analise o PR #123 completamente"
|
|
165
|
+
- "Review the pull request for silent failures"
|
|
166
|
+
- "Verifique os comentários não resolvidos no PR"
|
|
167
|
+
- "Hunt for async issues in this PR"
|
|
168
|
+
- "Simplifique o código deste pull request"
|
|
169
|
+
- "Check test coverage for PR changes"
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Integration Notes
|
|
174
|
+
|
|
175
|
+
This skill is part of the **Claude Code Official Skills** collection.
|
|
176
|
+
Namespace: `[OFFICIAL]` - Distinguishes from Mega Brain custom skills.
|
|
177
|
+
|
|
178
|
+
For custom Mega Brain skills, see: `/.claude/skills/`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# RESUME SESSION - Recuperação de Contexto
|
|
2
|
+
|
|
3
|
+
## Trigger
|
|
4
|
+
`/resume` ou ao iniciar nova conversa
|
|
5
|
+
|
|
6
|
+
## Objetivo
|
|
7
|
+
Recuperar o contexto COMPLETO da última sessão para continuar de onde parou.
|
|
8
|
+
|
|
9
|
+
## Execução
|
|
10
|
+
|
|
11
|
+
### 1. Localizar Última Sessão
|
|
12
|
+
Ler `.claude/sessions/LATEST-SESSION.md` para encontrar a sessão mais recente.
|
|
13
|
+
|
|
14
|
+
### 2. Carregar Contexto
|
|
15
|
+
Ler o arquivo de sessão completo e extrair:
|
|
16
|
+
- Estado da missão
|
|
17
|
+
- Fase atual
|
|
18
|
+
- Pendências
|
|
19
|
+
- Próximos passos
|
|
20
|
+
- Decisões tomadas
|
|
21
|
+
- Notas importantes
|
|
22
|
+
|
|
23
|
+
### 3. Apresentar Resumo de Retomada
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
┌──────────────────────────────────────────────────────────────────────────────┐
|
|
27
|
+
│ 🔄 RETOMANDO SESSÃO │
|
|
28
|
+
│ │
|
|
29
|
+
│ Última atividade: [DATA/HORA] │
|
|
30
|
+
│ Duração desde última sessão: [X horas/dias] │
|
|
31
|
+
│ │
|
|
32
|
+
│ 📍 ONDE PARAMOS: │
|
|
33
|
+
│ Missão: [NOME] │
|
|
34
|
+
│ Fase: [N] de 5 - [NOME_FASE] │
|
|
35
|
+
│ Progresso: [X]% │
|
|
36
|
+
│ │
|
|
37
|
+
│ 📋 PENDÊNCIAS HERDADAS: │
|
|
38
|
+
│ - [Pendência 1] │
|
|
39
|
+
│ - [Pendência 2] │
|
|
40
|
+
│ │
|
|
41
|
+
│ ➡️ PRÓXIMO PASSO PLANEJADO: │
|
|
42
|
+
│ [Descrição do próximo passo] │
|
|
43
|
+
│ │
|
|
44
|
+
│ 💡 DECISÕES ANTERIORES: │
|
|
45
|
+
│ - [Decisão relevante] │
|
|
46
|
+
│ │
|
|
47
|
+
└──────────────────────────────────────────────────────────────────────────────┘
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 4. Perguntar Confirmação
|
|
51
|
+
"Quer continuar de onde paramos ou precisa de algo diferente?"
|
|
52
|
+
|
|
53
|
+
### 5. Listar Sessões Antigas (Opcional)
|
|
54
|
+
Se usuário pedir, listar todas as sessões disponíveis:
|
|
55
|
+
```
|
|
56
|
+
/resume list - mostra todas as sessões salvas
|
|
57
|
+
/resume [SESSION-ID] - carrega sessão específica
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Output
|
|
61
|
+
Contexto recuperado + resumo visual + confirmação do usuário
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# SAVE SESSION - Persistência de Contexto
|
|
2
|
+
|
|
3
|
+
## Trigger
|
|
4
|
+
`/save` ou automaticamente ao final de cada tarefa significativa
|
|
5
|
+
|
|
6
|
+
## Objetivo
|
|
7
|
+
Salvar o estado COMPLETO da sessão atual para recuperação posterior.
|
|
8
|
+
|
|
9
|
+
## Execução
|
|
10
|
+
|
|
11
|
+
Quando acionado:
|
|
12
|
+
|
|
13
|
+
### 1. Coletar Estado Atual
|
|
14
|
+
```
|
|
15
|
+
- Timestamp da sessão
|
|
16
|
+
- Missão ativa (se houver)
|
|
17
|
+
- Fase atual
|
|
18
|
+
- Últimas ações executadas
|
|
19
|
+
- Arquivos modificados
|
|
20
|
+
- Pendências identificadas
|
|
21
|
+
- Contexto de conversa (resumo estruturado)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 2. Gerar SESSION-LOG
|
|
25
|
+
Criar arquivo em `.claude/sessions/` com formato:
|
|
26
|
+
```
|
|
27
|
+
SESSION-YYYY-MM-DD-HHmm.md
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 3. Template Obrigatório
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# SESSION LOG - [TIMESTAMP]
|
|
34
|
+
|
|
35
|
+
## ESTADO DA MISSÃO
|
|
36
|
+
- **Missão**: [NOME]
|
|
37
|
+
- **Fase**: [N] de 5
|
|
38
|
+
- **Progresso**: [X]%
|
|
39
|
+
|
|
40
|
+
## CONTEXTO DA CONVERSA
|
|
41
|
+
[Resumo detalhado do que foi discutido/decidido]
|
|
42
|
+
|
|
43
|
+
## AÇÕES EXECUTADAS
|
|
44
|
+
1. [Ação 1 com detalhes]
|
|
45
|
+
2. [Ação 2 com detalhes]
|
|
46
|
+
...
|
|
47
|
+
|
|
48
|
+
## ARQUIVOS MODIFICADOS
|
|
49
|
+
- [arquivo1.ext] - [o que mudou]
|
|
50
|
+
- [arquivo2.ext] - [o que mudou]
|
|
51
|
+
|
|
52
|
+
## PENDÊNCIAS
|
|
53
|
+
- [ ] [Pendência 1]
|
|
54
|
+
- [ ] [Pendência 2]
|
|
55
|
+
|
|
56
|
+
## DECISÕES TOMADAS
|
|
57
|
+
- [Decisão 1]: [Razão]
|
|
58
|
+
- [Decisão 2]: [Razão]
|
|
59
|
+
|
|
60
|
+
## PRÓXIMOS PASSOS PLANEJADOS
|
|
61
|
+
1. [Próximo passo 1]
|
|
62
|
+
2. [Próximo passo 2]
|
|
63
|
+
|
|
64
|
+
## NOTAS IMPORTANTES
|
|
65
|
+
[Qualquer coisa crítica para não esquecer]
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
Session ID: [UUID]
|
|
69
|
+
Saved at: [ISO timestamp]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 4. Atualizar LATEST-SESSION.md
|
|
73
|
+
Sempre manter um link para a última sessão em:
|
|
74
|
+
`.claude/sessions/LATEST-SESSION.md`
|
|
75
|
+
|
|
76
|
+
### 5. Confirmar
|
|
77
|
+
Responder: "Sessão salva: SESSION-YYYY-MM-DD-HHmm.md"
|
|
78
|
+
|
|
79
|
+
## Auto-Save Triggers
|
|
80
|
+
- Após completar qualquer batch
|
|
81
|
+
- Antes de qualquer operação destrutiva
|
|
82
|
+
- A cada 30 minutos de atividade
|
|
83
|
+
- Quando detectar pausa prolongada
|
|
84
|
+
- Quando usuário expressar que vai sair
|
|
85
|
+
|
|
86
|
+
## Output
|
|
87
|
+
Arquivo de sessão + confirmação visual
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-writer
|
|
3
|
+
description: Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.
|
|
4
|
+
allowed-tools: Read, Grep, Glob, Write, Edit, Bash(mkdir:*), Bash(ls:*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Skill Writer
|
|
8
|
+
|
|
9
|
+
Create well-structured Agent Skills for Claude Code following best practices.
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
---
|
|
15
|
+
name: my-skill-name
|
|
16
|
+
description: What this does. Use when user mentions X, Y, or Z.
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# My Skill Name
|
|
20
|
+
|
|
21
|
+
Instructions for Claude here...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## When to use this Skill
|
|
25
|
+
|
|
26
|
+
- Creating a new Agent Skill
|
|
27
|
+
- Writing or updating SKILL.md files
|
|
28
|
+
- Designing skill structure and frontmatter
|
|
29
|
+
- Converting existing prompts into Skills
|
|
30
|
+
|
|
31
|
+
## Instructions
|
|
32
|
+
|
|
33
|
+
### Step 1: Determine scope
|
|
34
|
+
|
|
35
|
+
Ask clarifying questions:
|
|
36
|
+
- What specific capability should this Skill provide?
|
|
37
|
+
- When should Claude use this Skill?
|
|
38
|
+
- What tools or resources does it need?
|
|
39
|
+
|
|
40
|
+
**Rule**: One Skill = one capability
|
|
41
|
+
|
|
42
|
+
### Step 2: Choose location
|
|
43
|
+
|
|
44
|
+
| Location | Use Case |
|
|
45
|
+
|----------|----------|
|
|
46
|
+
| `~/.claude/skills/` | Personal, experimental |
|
|
47
|
+
| `.claude/skills/` | Team/project, git-tracked |
|
|
48
|
+
|
|
49
|
+
### Step 3: Create structure
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
mkdir -p .claude/skills/skill-name
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Multi-file structure:
|
|
56
|
+
```
|
|
57
|
+
skill-name/
|
|
58
|
+
├── SKILL.md (required)
|
|
59
|
+
├── reference.md (optional)
|
|
60
|
+
├── examples.md (optional)
|
|
61
|
+
└── scripts/ (optional)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Step 4: Write frontmatter
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
---
|
|
68
|
+
name: skill-name
|
|
69
|
+
description: Brief description of what this does and when to use it
|
|
70
|
+
---
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
| Field | Rules |
|
|
74
|
+
|-------|-------|
|
|
75
|
+
| `name` | Lowercase, hyphens, max 64 chars, **must match folder name** |
|
|
76
|
+
| `description` | Max 1024 chars, include WHAT + WHEN to use |
|
|
77
|
+
| `allowed-tools` | (Optional) Restrict tool access |
|
|
78
|
+
|
|
79
|
+
### Step 5: Write effective descriptions
|
|
80
|
+
|
|
81
|
+
**Formula**: `[What it does] + [When to use it] + [Key triggers]`
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
# Good
|
|
85
|
+
description: Extract text from PDFs, fill forms. Use when working with PDF files or document extraction.
|
|
86
|
+
|
|
87
|
+
# Bad
|
|
88
|
+
description: Helps with documents
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Tips:
|
|
92
|
+
- Include file extensions (.pdf, .xlsx)
|
|
93
|
+
- Use trigger words ("analyze", "extract", "generate")
|
|
94
|
+
- Add "Use when..." clause
|
|
95
|
+
|
|
96
|
+
### Step 6: Structure content
|
|
97
|
+
|
|
98
|
+
```markdown
|
|
99
|
+
# Skill Name
|
|
100
|
+
|
|
101
|
+
Brief overview.
|
|
102
|
+
|
|
103
|
+
## Quick start
|
|
104
|
+
|
|
105
|
+
Simple example.
|
|
106
|
+
|
|
107
|
+
## Instructions
|
|
108
|
+
|
|
109
|
+
Step-by-step guidance.
|
|
110
|
+
|
|
111
|
+
## Requirements
|
|
112
|
+
|
|
113
|
+
Dependencies if any.
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Step 7: Validate
|
|
117
|
+
|
|
118
|
+
- [ ] SKILL.md exists in correct location
|
|
119
|
+
- [ ] Directory name matches frontmatter `name`
|
|
120
|
+
- [ ] YAML valid (no tabs, spaces only)
|
|
121
|
+
- [ ] Description < 1024 chars, includes what + when
|
|
122
|
+
- [ ] Instructions are actionable
|
|
123
|
+
|
|
124
|
+
### Step 8: Test
|
|
125
|
+
|
|
126
|
+
1. Restart Claude Code to load Skill
|
|
127
|
+
2. Ask questions matching the description
|
|
128
|
+
3. Verify activation and behavior
|
|
129
|
+
|
|
130
|
+
## Additional resources
|
|
131
|
+
|
|
132
|
+
- **Patterns and examples**: See [examples.md](examples.md)
|
|
133
|
+
- **Debugging issues**: See [troubleshooting.md](troubleshooting.md)
|
|
134
|
+
|
|
135
|
+
## Output format
|
|
136
|
+
|
|
137
|
+
When creating a Skill, I will:
|
|
138
|
+
|
|
139
|
+
1. Ask clarifying questions about scope
|
|
140
|
+
2. Suggest name and location
|
|
141
|
+
3. Create SKILL.md with proper frontmatter
|
|
142
|
+
4. Include instructions and examples
|
|
143
|
+
5. Add supporting files if needed
|
|
144
|
+
6. Validate against requirements
|
|
145
|
+
|
|
146
|
+
## Best practices summary
|
|
147
|
+
|
|
148
|
+
1. **One Skill, one purpose**
|
|
149
|
+
2. **Specific descriptions** with trigger words
|
|
150
|
+
3. **Clear instructions** written for Claude
|
|
151
|
+
4. **Concrete examples** with real code
|
|
152
|
+
5. **Progressive disclosure** for complex Skills
|
|
153
|
+
6. **Under 500 lines** in SKILL.md
|