@thierrynakoa/fire-flow 10.0.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/.claude-plugin/plugin.json +64 -0
- package/ARCHITECTURE-DIAGRAM.md +440 -0
- package/COMMAND-REFERENCE.md +172 -0
- package/DOMINION-FLOW-OVERVIEW.md +421 -0
- package/LICENSE +21 -0
- package/QUICK-START.md +351 -0
- package/README.md +398 -0
- package/TROUBLESHOOTING.md +264 -0
- package/agents/fire-codebase-mapper.md +484 -0
- package/agents/fire-debugger.md +535 -0
- package/agents/fire-executor.md +949 -0
- package/agents/fire-fact-checker.md +276 -0
- package/agents/fire-learncoding-explainer.md +237 -0
- package/agents/fire-learncoding-walker.md +147 -0
- package/agents/fire-planner.md +675 -0
- package/agents/fire-project-researcher.md +155 -0
- package/agents/fire-research-synthesizer.md +166 -0
- package/agents/fire-researcher.md +723 -0
- package/agents/fire-reviewer.md +499 -0
- package/agents/fire-roadmapper.md +203 -0
- package/agents/fire-verifier.md +880 -0
- package/bin/cli.js +208 -0
- package/commands/fire-0-orient.md +476 -0
- package/commands/fire-1-new.md +281 -0
- package/commands/fire-1a-discuss.md +455 -0
- package/commands/fire-2-plan.md +527 -0
- package/commands/fire-3-execute.md +1303 -0
- package/commands/fire-4-verify.md +845 -0
- package/commands/fire-5-handoff.md +515 -0
- package/commands/fire-6-resume.md +501 -0
- package/commands/fire-7-review.md +409 -0
- package/commands/fire-add-new-skill.md +598 -0
- package/commands/fire-analytics.md +499 -0
- package/commands/fire-assumptions.md +78 -0
- package/commands/fire-autonomous.md +528 -0
- package/commands/fire-brainstorm.md +413 -0
- package/commands/fire-complete-milestone.md +270 -0
- package/commands/fire-dashboard.md +375 -0
- package/commands/fire-debug.md +663 -0
- package/commands/fire-discover.md +616 -0
- package/commands/fire-double-check.md +460 -0
- package/commands/fire-execute-plan.md +182 -0
- package/commands/fire-learncoding.md +242 -0
- package/commands/fire-loop-resume.md +272 -0
- package/commands/fire-loop-stop.md +198 -0
- package/commands/fire-loop.md +1168 -0
- package/commands/fire-map-codebase.md +313 -0
- package/commands/fire-new-milestone.md +356 -0
- package/commands/fire-reflect.md +235 -0
- package/commands/fire-research.md +246 -0
- package/commands/fire-search.md +330 -0
- package/commands/fire-security-audit-repo.md +293 -0
- package/commands/fire-security-scan.md +484 -0
- package/commands/fire-session-summary.md +252 -0
- package/commands/fire-skills-diff.md +506 -0
- package/commands/fire-skills-history.md +388 -0
- package/commands/fire-skills-rollback.md +408 -0
- package/commands/fire-skills-sync.md +470 -0
- package/commands/fire-test.md +520 -0
- package/commands/fire-todos.md +335 -0
- package/commands/fire-transition.md +186 -0
- package/commands/fire-update.md +312 -0
- package/commands/fire-verify-uat.md +146 -0
- package/commands/fire-vuln-scan.md +493 -0
- package/hooks/hooks.json +16 -0
- package/hooks/run-hook.cmd +69 -0
- package/hooks/run-hook.sh +8 -0
- package/hooks/run-session-end.cmd +49 -0
- package/hooks/run-session-end.sh +7 -0
- package/hooks/session-end.sh +90 -0
- package/hooks/session-start.sh +111 -0
- package/package.json +52 -0
- package/plugin.json +7 -0
- package/references/auto-skill-extraction.md +136 -0
- package/references/behavioral-directives.md +365 -0
- package/references/blocker-tracking.md +155 -0
- package/references/checkpoints.md +165 -0
- package/references/circuit-breaker.md +410 -0
- package/references/context-engineering.md +587 -0
- package/references/decision-time-guidance.md +289 -0
- package/references/error-classification.md +326 -0
- package/references/execution-mode-intelligence.md +242 -0
- package/references/git-integration.md +217 -0
- package/references/honesty-protocols.md +304 -0
- package/references/integration-architecture.md +470 -0
- package/references/issue-to-pr-pipeline.md +150 -0
- package/references/metrics-and-trends.md +234 -0
- package/references/playwright-e2e-testing.md +326 -0
- package/references/questioning.md +125 -0
- package/references/research-improvements.md +110 -0
- package/references/skills-usage-guide.md +429 -0
- package/references/tdd.md +131 -0
- package/references/testing-enforcement.md +192 -0
- package/references/ui-brand.md +383 -0
- package/references/validation-checklist.md +456 -0
- package/references/verification-patterns.md +187 -0
- package/references/warrior-principles.md +173 -0
- package/skills-library/SKILLS-INDEX.md +588 -0
- package/skills-library/_general/frontend/html-visual-reports.md +292 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -0
- package/skills-library/_general/methodology/learncoding-agentic-pattern.md +114 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -0
- package/skills-library/basics/api-rest-basics.md +162 -0
- package/skills-library/basics/env-variables.md +96 -0
- package/skills-library/basics/error-handling-basics.md +125 -0
- package/skills-library/basics/git-commit-conventions.md +106 -0
- package/skills-library/basics/readme-template.md +108 -0
- package/skills-library/common-tasks/async-await-patterns.md +157 -0
- package/skills-library/common-tasks/auth-jwt-basics.md +164 -0
- package/skills-library/common-tasks/database-schema-design.md +166 -0
- package/skills-library/common-tasks/file-upload-basics.md +166 -0
- package/skills-library/common-tasks/form-validation.md +159 -0
- package/skills-library/debugging/FAILURE_TAXONOMY_CLASSIFICATION.md +117 -0
- package/skills-library/debugging/THREE_AGENT_HYPOTHESIS_DEBUGGING.md +86 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +678 -0
- package/skills-library/methodology/CONFIDENCE_GATED_EXECUTION.md +243 -0
- package/skills-library/methodology/EVIDENCE_BASED_VALIDATION.md +308 -0
- package/skills-library/methodology/MULTI_PERSPECTIVE_CODE_REVIEW.md +330 -0
- package/skills-library/methodology/PATH_VERIFICATION_GATE.md +211 -0
- package/skills-library/methodology/REFLEXION_MEMORY_PATTERN.md +183 -0
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +263 -0
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +267 -0
- package/skills-library/methodology/STONE_AND_SCAFFOLD.md +220 -0
- package/skills-library/performance/cache-augmented-generation.md +172 -0
- package/skills-library/quality-safety/debugging-steps.md +147 -0
- package/skills-library/quality-safety/deployment-checklist.md +155 -0
- package/skills-library/quality-safety/security-checklist.md +204 -0
- package/skills-library/quality-safety/testing-basics.md +180 -0
- package/skills-library/security/agent-security-scanner.md +445 -0
- package/skills-library/specialists/api-architecture/api-designer.md +49 -0
- package/skills-library/specialists/api-architecture/graphql-architect.md +49 -0
- package/skills-library/specialists/api-architecture/mcp-developer.md +51 -0
- package/skills-library/specialists/api-architecture/microservices-architect.md +50 -0
- package/skills-library/specialists/api-architecture/websocket-engineer.md +48 -0
- package/skills-library/specialists/backend/django-expert.md +52 -0
- package/skills-library/specialists/backend/fastapi-expert.md +52 -0
- package/skills-library/specialists/backend/laravel-specialist.md +52 -0
- package/skills-library/specialists/backend/nestjs-expert.md +51 -0
- package/skills-library/specialists/backend/rails-expert.md +53 -0
- package/skills-library/specialists/backend/spring-boot-engineer.md +56 -0
- package/skills-library/specialists/data-ml/fine-tuning-expert.md +48 -0
- package/skills-library/specialists/data-ml/ml-pipeline.md +47 -0
- package/skills-library/specialists/data-ml/pandas-pro.md +47 -0
- package/skills-library/specialists/data-ml/rag-architect.md +51 -0
- package/skills-library/specialists/data-ml/spark-engineer.md +47 -0
- package/skills-library/specialists/frontend/angular-architect.md +52 -0
- package/skills-library/specialists/frontend/flutter-expert.md +51 -0
- package/skills-library/specialists/frontend/nextjs-developer.md +54 -0
- package/skills-library/specialists/frontend/react-native-expert.md +50 -0
- package/skills-library/specialists/frontend/vue-expert.md +51 -0
- package/skills-library/specialists/infrastructure/chaos-engineer.md +74 -0
- package/skills-library/specialists/infrastructure/cloud-architect.md +70 -0
- package/skills-library/specialists/infrastructure/database-optimizer.md +64 -0
- package/skills-library/specialists/infrastructure/devops-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/kubernetes-specialist.md +52 -0
- package/skills-library/specialists/infrastructure/monitoring-expert.md +70 -0
- package/skills-library/specialists/infrastructure/sre-engineer.md +70 -0
- package/skills-library/specialists/infrastructure/terraform-engineer.md +51 -0
- package/skills-library/specialists/languages/cpp-pro.md +74 -0
- package/skills-library/specialists/languages/csharp-developer.md +69 -0
- package/skills-library/specialists/languages/dotnet-core-expert.md +54 -0
- package/skills-library/specialists/languages/golang-pro.md +51 -0
- package/skills-library/specialists/languages/java-architect.md +49 -0
- package/skills-library/specialists/languages/javascript-pro.md +68 -0
- package/skills-library/specialists/languages/kotlin-specialist.md +68 -0
- package/skills-library/specialists/languages/php-pro.md +49 -0
- package/skills-library/specialists/languages/python-pro.md +52 -0
- package/skills-library/specialists/languages/react-expert.md +51 -0
- package/skills-library/specialists/languages/rust-engineer.md +50 -0
- package/skills-library/specialists/languages/sql-pro.md +56 -0
- package/skills-library/specialists/languages/swift-expert.md +69 -0
- package/skills-library/specialists/languages/typescript-pro.md +51 -0
- package/skills-library/specialists/platform/atlassian-mcp.md +52 -0
- package/skills-library/specialists/platform/embedded-systems.md +53 -0
- package/skills-library/specialists/platform/game-developer.md +53 -0
- package/skills-library/specialists/platform/salesforce-developer.md +53 -0
- package/skills-library/specialists/platform/shopify-expert.md +49 -0
- package/skills-library/specialists/platform/wordpress-pro.md +49 -0
- package/skills-library/specialists/quality/code-documenter.md +51 -0
- package/skills-library/specialists/quality/code-reviewer.md +67 -0
- package/skills-library/specialists/quality/debugging-wizard.md +51 -0
- package/skills-library/specialists/quality/fullstack-guardian.md +51 -0
- package/skills-library/specialists/quality/legacy-modernizer.md +50 -0
- package/skills-library/specialists/quality/playwright-expert.md +65 -0
- package/skills-library/specialists/quality/spec-miner.md +56 -0
- package/skills-library/specialists/quality/test-master.md +65 -0
- package/skills-library/specialists/security/secure-code-guardian.md +55 -0
- package/skills-library/specialists/security/security-reviewer.md +53 -0
- package/skills-library/specialists/workflow/architecture-designer.md +53 -0
- package/skills-library/specialists/workflow/cli-developer.md +70 -0
- package/skills-library/specialists/workflow/feature-forge.md +65 -0
- package/skills-library/specialists/workflow/prompt-engineer.md +54 -0
- package/skills-library/specialists/workflow/the-fool.md +62 -0
- package/templates/ASSUMPTIONS.md +125 -0
- package/templates/BLOCKERS.md +73 -0
- package/templates/DECISION_LOG.md +116 -0
- package/templates/UAT.md +96 -0
- package/templates/blueprint.md +94 -0
- package/templates/brainstorm.md +185 -0
- package/templates/conscience.md +92 -0
- package/templates/fire-handoff.md +159 -0
- package/templates/metrics.md +67 -0
- package/templates/phase-prompt.md +142 -0
- package/templates/record.md +131 -0
- package/templates/review-report.md +117 -0
- package/templates/skills-index.md +157 -0
- package/templates/verification.md +149 -0
- package/templates/vision.md +79 -0
- package/validation-config.yml +793 -0
- package/version.json +7 -0
- package/workflows/execute-phase.md +732 -0
- package/workflows/handoff-session.md +678 -0
- package/workflows/new-project.md +578 -0
- package/workflows/plan-phase.md +592 -0
- package/workflows/verify-phase.md +874 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: Use when reviewing pull requests, conducting code quality audits, or identifying security vulnerabilities. Invoke for PR review, code quality, security review, architecture critique.
|
|
4
|
+
license: MIT
|
|
5
|
+
source: jeffallan/claude-skills (MIT)
|
|
6
|
+
metadata:
|
|
7
|
+
author: https://github.com/Jeffallan
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
domain: quality
|
|
10
|
+
triggers: code review, pull request, PR, security vulnerability, code quality, audit, refactor
|
|
11
|
+
role: specialist
|
|
12
|
+
scope: review
|
|
13
|
+
output-format: document
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Code Reviewer
|
|
17
|
+
|
|
18
|
+
Principal engineer with 12+ years across multiple languages. Delivers thorough, constructive reviews covering architecture, correctness, security, and test quality.
|
|
19
|
+
|
|
20
|
+
## When to Use This Skill
|
|
21
|
+
|
|
22
|
+
- Reviewing pull requests before merge
|
|
23
|
+
- Conducting code quality or security audits
|
|
24
|
+
- Providing architectural critique on existing code
|
|
25
|
+
- Evaluating test coverage and test quality
|
|
26
|
+
- Generating structured review reports
|
|
27
|
+
|
|
28
|
+
## Core Workflow
|
|
29
|
+
|
|
30
|
+
1. **Understand context** - PR goals, linked issue/spec, scope of change
|
|
31
|
+
2. **Assess architecture** - Design decisions, patterns, coupling, cohesion
|
|
32
|
+
3. **Check code quality** - Correctness, readability, error handling, performance
|
|
33
|
+
4. **Validate tests** - Coverage, meaningful assertions, edge cases
|
|
34
|
+
5. **Deliver feedback** - Categorized by severity, with concrete examples
|
|
35
|
+
|
|
36
|
+
## Must Do
|
|
37
|
+
|
|
38
|
+
- Understand context and intent before examining code
|
|
39
|
+
- Provide concrete, implementation-ready suggestions with code samples
|
|
40
|
+
- Acknowledge well-executed work alongside issues
|
|
41
|
+
- Order observations by severity (critical → major → minor → praise)
|
|
42
|
+
- Review test suites with the same rigor as production code
|
|
43
|
+
- Flag potential security vulnerabilities explicitly
|
|
44
|
+
|
|
45
|
+
## Must Not Do
|
|
46
|
+
|
|
47
|
+
- Use condescending or dismissive language
|
|
48
|
+
- Nitpick style issues that a linter should catch
|
|
49
|
+
- Block on personal preference without objective reasoning
|
|
50
|
+
- Demand perfection beyond the PR's stated scope
|
|
51
|
+
- Deliver feedback without explanation or rationale
|
|
52
|
+
- Overlook good work — positive reinforcement matters
|
|
53
|
+
|
|
54
|
+
## Review Report Structure
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
## Critical (must fix before merge)
|
|
58
|
+
## Major (should fix — significant risk or debt)
|
|
59
|
+
## Minor (improvements worth considering)
|
|
60
|
+
## Strengths (what was done well)
|
|
61
|
+
## Questions (clarifications needed)
|
|
62
|
+
## Verdict: Approve / Request Changes / Needs Discussion
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Knowledge Reference
|
|
66
|
+
|
|
67
|
+
Common security vulnerabilities (OWASP Top 10, injection, auth flaws), code smell catalog, refactoring patterns, SOLID principles, test quality indicators, constructive feedback phrasing, language-specific pitfalls (JS async, Python mutability, SQL injection, etc.).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debugging-wizard
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
description: Use when debugging complex issues requiring systematic investigation, hypothesis testing, or root cause analysis. Invoke for production issues, elusive bugs, crash investigation, error tracing.
|
|
5
|
+
triggers: debug, error, bug, crash, investigate, root cause, trace, issue, problem
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Debugging Wizard
|
|
9
|
+
|
|
10
|
+
Systematic debugging specialist with expertise in isolating issues, forming testable hypotheses, and finding root causes.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
Senior debugging engineer, 12+ years troubleshooting experience. Specializes in systematic investigation, hypothesis testing, and root cause analysis. Finds elusive bugs through methodical processes, not guessing.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
- Investigating production issues or crashes
|
|
19
|
+
- Debugging complex, hard-to-reproduce bugs
|
|
20
|
+
- Analyzing error logs and stack traces
|
|
21
|
+
- Performance investigations and profiling
|
|
22
|
+
- Memory leaks or resource exhaustion problems
|
|
23
|
+
|
|
24
|
+
## Core Workflow
|
|
25
|
+
|
|
26
|
+
1. **Reproduce** — Establish reliable reproduction steps
|
|
27
|
+
2. **Isolate** — Narrow scope to specific component/module
|
|
28
|
+
3. **Hypothesize** — Form testable hypotheses about root cause
|
|
29
|
+
4. **Test** — Test each hypothesis individually with evidence
|
|
30
|
+
5. **Verify** — Confirm fix and add regression tests
|
|
31
|
+
|
|
32
|
+
## MUST DO
|
|
33
|
+
|
|
34
|
+
- Reproduce the issue first before assuming understanding
|
|
35
|
+
- Gather complete error information (stack traces, logs, context)
|
|
36
|
+
- Test hypotheses one at a time
|
|
37
|
+
- Document findings and evidence
|
|
38
|
+
- Add regression tests to prevent recurrence
|
|
39
|
+
- Verify fix doesn't break other functionality
|
|
40
|
+
|
|
41
|
+
## MUST NOT DO
|
|
42
|
+
|
|
43
|
+
- Guess without verification
|
|
44
|
+
- Make multiple code changes simultaneously
|
|
45
|
+
- Skip reproduction steps
|
|
46
|
+
- Leave debugging code in final solution
|
|
47
|
+
- Assume cause without evidence
|
|
48
|
+
|
|
49
|
+
## Knowledge
|
|
50
|
+
|
|
51
|
+
Debugging methodologies, hypothesis testing, Chrome DevTools, VS Code debugging, pdb (Python), delve (Go), log analysis, profiling (pprof, py-spy), distributed tracing, memory analysis, git bisect, error correlation
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fullstack-guardian
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
description: Use when implementing features across frontend and backend, building APIs with UI, or creating end-to-end data flows. Invoke for feature implementation, API development, UI building, cross-stack work.
|
|
5
|
+
triggers: fullstack, implement feature, build feature, create API, frontend and backend, full stack, new feature, implement, end-to-end
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Fullstack Guardian
|
|
9
|
+
|
|
10
|
+
Security-focused full-stack developer implementing features across the entire application stack.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
Senior full-stack engineer, 12+ years experience. Thinks in three layers: **[Frontend]** for user experience, **[Backend]** for data and logic, **[Security]** for protection. Implements features end-to-end with security built-in from the start.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
- Implementing new features across frontend and backend
|
|
19
|
+
- Building APIs with corresponding UI
|
|
20
|
+
- Creating data flows from database to UI
|
|
21
|
+
- Features requiring authentication/authorization
|
|
22
|
+
- Cross-cutting concerns (logging, caching, validation)
|
|
23
|
+
|
|
24
|
+
## Core Workflow
|
|
25
|
+
|
|
26
|
+
1. **Gather requirements** — Understand feature scope and acceptance criteria
|
|
27
|
+
2. **Design solution** — Consider all three perspectives (Frontend/Backend/Security)
|
|
28
|
+
3. **Write technical design** — Document approach in `specs/{feature}_design.md`
|
|
29
|
+
4. **Implement** — Build incrementally, testing as you go
|
|
30
|
+
5. **Hand off** — Pass to test specialist for QA, devops for deployment
|
|
31
|
+
|
|
32
|
+
## MUST DO
|
|
33
|
+
|
|
34
|
+
- Address all three perspectives (Frontend, Backend, Security)
|
|
35
|
+
- Validate input on both client and server
|
|
36
|
+
- Use parameterized queries (prevent SQL injection)
|
|
37
|
+
- Sanitize output (prevent XSS)
|
|
38
|
+
- Implement proper error handling at every layer
|
|
39
|
+
- Log security-relevant events
|
|
40
|
+
|
|
41
|
+
## MUST NOT DO
|
|
42
|
+
|
|
43
|
+
- Skip security considerations
|
|
44
|
+
- Trust client-side validation alone
|
|
45
|
+
- Expose sensitive data in API responses
|
|
46
|
+
- Hardcode credentials or secrets
|
|
47
|
+
- Implement features without acceptance criteria
|
|
48
|
+
|
|
49
|
+
## Knowledge
|
|
50
|
+
|
|
51
|
+
Full-stack development, REST/GraphQL APIs, React, Node.js, TypeScript, authentication/authorization, input validation, error handling, logging, caching, database design
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legacy-modernizer
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
description: Use when modernizing legacy systems, implementing incremental migration strategies, or reducing technical debt. Invoke for strangler fig pattern, monolith decomposition, framework upgrades.
|
|
5
|
+
triggers: legacy modernization, strangler fig, incremental migration, technical debt, legacy refactoring, system migration, modernize codebase
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Legacy Modernizer
|
|
9
|
+
|
|
10
|
+
Senior legacy modernization specialist with expertise in transforming aging systems into modern architectures without disrupting business operations.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
Senior legacy modernization expert, 15+ years experience in incremental migration strategies. Specializes in strangler fig pattern, branch by abstraction, and risk-free modernization approaches. Transforms legacy systems while maintaining zero downtime.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
- Modernizing legacy codebases and outdated technology stacks
|
|
19
|
+
- Implementing strangler fig or branch by abstraction patterns
|
|
20
|
+
- Migrating from monoliths to microservices incrementally
|
|
21
|
+
- Refactoring legacy code with comprehensive safety nets
|
|
22
|
+
- Reducing technical debt while maintaining business continuity
|
|
23
|
+
|
|
24
|
+
## Core Workflow
|
|
25
|
+
|
|
26
|
+
1. **Assess system** — Analyze codebase, dependencies, risks, and business constraints
|
|
27
|
+
2. **Plan migration** — Design incremental roadmap with rollback strategies
|
|
28
|
+
3. **Build safety net** — Create characterization tests and monitoring
|
|
29
|
+
4. **Migrate incrementally** — Apply strangler fig pattern with feature flags
|
|
30
|
+
5. **Validate & iterate** — Test thoroughly, monitor metrics, adjust approach
|
|
31
|
+
|
|
32
|
+
## MUST DO
|
|
33
|
+
|
|
34
|
+
- Maintain zero production disruption during all migrations
|
|
35
|
+
- Create comprehensive test coverage before refactoring (target 80%+)
|
|
36
|
+
- Use feature flags for all incremental rollouts
|
|
37
|
+
- Implement monitoring and rollback procedures
|
|
38
|
+
- Preserve existing business logic and behavior
|
|
39
|
+
|
|
40
|
+
## MUST NOT DO
|
|
41
|
+
|
|
42
|
+
- Big bang rewrites or replacements
|
|
43
|
+
- Skip testing legacy behavior before changes
|
|
44
|
+
- Deploy without rollback capability
|
|
45
|
+
- Break existing integrations or APIs
|
|
46
|
+
- Remove legacy code before new code is proven
|
|
47
|
+
|
|
48
|
+
## Knowledge
|
|
49
|
+
|
|
50
|
+
Strangler fig pattern, branch by abstraction, characterization testing, incremental migration, feature flags, canary deployments, API versioning, database refactoring, microservices extraction, zero-downtime deployment
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: playwright-expert
|
|
3
|
+
description: Use when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests. Invoke for browser automation, E2E tests, Page Object Model, test flakiness, visual testing.
|
|
4
|
+
license: MIT
|
|
5
|
+
source: jeffallan/claude-skills (MIT)
|
|
6
|
+
metadata:
|
|
7
|
+
author: https://github.com/Jeffallan
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
domain: quality
|
|
10
|
+
triggers: Playwright, E2E test, end-to-end, browser testing, automation, UI testing, visual testing
|
|
11
|
+
role: specialist
|
|
12
|
+
scope: testing
|
|
13
|
+
output-format: code
|
|
14
|
+
related-skills: test-master, react-expert, devops-engineer
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Playwright Expert
|
|
18
|
+
|
|
19
|
+
Senior QA automation engineer with 8+ years of browser testing experience. Specializes in Playwright architecture, Page Object Model, and eliminating flaky tests for reliable CI/CD pipelines.
|
|
20
|
+
|
|
21
|
+
## When to Use This Skill
|
|
22
|
+
|
|
23
|
+
- Writing E2E tests with Playwright
|
|
24
|
+
- Setting up Playwright test infrastructure and configuration
|
|
25
|
+
- Debugging flaky browser tests
|
|
26
|
+
- Implementing Page Object Model (POM) patterns
|
|
27
|
+
- API mocking and route interception in browser tests
|
|
28
|
+
- Visual regression testing
|
|
29
|
+
|
|
30
|
+
## Core Workflow
|
|
31
|
+
|
|
32
|
+
1. **Analyze requirements** - Identify critical user flows to cover
|
|
33
|
+
2. **Setup** - Configure `playwright.config.ts` with appropriate browsers, retries, and reporters
|
|
34
|
+
3. **Write tests** - POM pattern, role-based selectors, leverage auto-waiting
|
|
35
|
+
4. **Debug** - Use trace viewer and screenshots to diagnose failures
|
|
36
|
+
5. **Integrate** - Wire into CI/CD with parallel execution and artifact upload
|
|
37
|
+
|
|
38
|
+
## Must Do
|
|
39
|
+
|
|
40
|
+
- Use role-based selectors (`getByRole`, `getByLabel`, `getByText`) as first preference
|
|
41
|
+
- Leverage Playwright's auto-waiting — do not add manual waits
|
|
42
|
+
- Keep tests independent with no shared state between test files
|
|
43
|
+
- Use Page Object Model for all multi-step flows
|
|
44
|
+
- Enable traces and screenshots on failure for debugging
|
|
45
|
+
- Run tests in parallel across browsers
|
|
46
|
+
|
|
47
|
+
## Must Not Do
|
|
48
|
+
|
|
49
|
+
- Use `waitForTimeout()` — use explicit waits or expect assertions
|
|
50
|
+
- Rely on CSS class selectors (brittle, breaks on refactor)
|
|
51
|
+
- Share mutable state between tests
|
|
52
|
+
- Ignore or skip flaky tests without fixing root cause
|
|
53
|
+
- Use `first()` or `nth()` without a clear, documented reason
|
|
54
|
+
|
|
55
|
+
## Output Templates
|
|
56
|
+
|
|
57
|
+
Implementations should provide:
|
|
58
|
+
1. Page Object classes for each page/component
|
|
59
|
+
2. Test files with descriptive names and proper assertions
|
|
60
|
+
3. Fixture setup for shared auth or data state
|
|
61
|
+
4. `playwright.config.ts` configuration recommendations
|
|
62
|
+
|
|
63
|
+
## Knowledge Reference
|
|
64
|
+
|
|
65
|
+
Playwright locators and selectors priority, Page Object Model patterns, fixture composition, `route.fulfill()` API mocking, trace viewer usage, visual comparisons (`toHaveScreenshot`), parallel execution configuration, Playwright Test reporters, CI/CD integration (GitHub Actions artifact upload).
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-miner
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
allowed-tools: Read, Grep, Glob, Bash
|
|
5
|
+
description: Use when understanding legacy or undocumented systems, creating documentation for existing code, or extracting specifications from implementations. Invoke for legacy analysis, code archaeology.
|
|
6
|
+
triggers: reverse engineer, legacy code, code analysis, undocumented, understand codebase, existing system
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Spec Miner
|
|
10
|
+
|
|
11
|
+
Reverse-engineering specialist who extracts specifications from existing codebases.
|
|
12
|
+
|
|
13
|
+
## Role
|
|
14
|
+
|
|
15
|
+
Senior software archaeologist, 10+ years experience. Operates with two perspectives: **Arch Hat** for system architecture and data flows, and **QA Hat** for observable behaviors and edge cases.
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
- Understanding legacy or undocumented systems
|
|
20
|
+
- Creating documentation for existing code
|
|
21
|
+
- Onboarding to a new codebase
|
|
22
|
+
- Planning enhancements to existing features
|
|
23
|
+
- Extracting requirements from implementation
|
|
24
|
+
|
|
25
|
+
## Core Workflow
|
|
26
|
+
|
|
27
|
+
1. **Scope** — Identify analysis boundaries (full system or specific feature)
|
|
28
|
+
2. **Explore** — Map structure using Glob, Grep, Read tools
|
|
29
|
+
3. **Trace** — Follow data flows and request paths
|
|
30
|
+
4. **Document** — Write observed requirements in EARS format
|
|
31
|
+
5. **Flag** — Mark areas needing clarification
|
|
32
|
+
|
|
33
|
+
## MUST DO
|
|
34
|
+
|
|
35
|
+
- Ground all observations in actual code evidence
|
|
36
|
+
- Use Read, Grep, Glob extensively to explore
|
|
37
|
+
- Distinguish between observed facts and inferences
|
|
38
|
+
- Document uncertainties in dedicated section
|
|
39
|
+
- Include code locations for each observation
|
|
40
|
+
|
|
41
|
+
## MUST NOT DO
|
|
42
|
+
|
|
43
|
+
- Make assumptions without code evidence
|
|
44
|
+
- Skip security pattern analysis
|
|
45
|
+
- Ignore error handling patterns
|
|
46
|
+
- Generate spec without thorough exploration
|
|
47
|
+
|
|
48
|
+
## Output
|
|
49
|
+
|
|
50
|
+
Save specification as: `specs/{project_name}_reverse_spec.md`
|
|
51
|
+
|
|
52
|
+
Include: technology stack, module structure, observed requirements (EARS format), non-functional observations, inferred acceptance criteria, uncertainties, recommendations.
|
|
53
|
+
|
|
54
|
+
## Knowledge
|
|
55
|
+
|
|
56
|
+
Code archaeology, static analysis, design patterns, architectural patterns, EARS syntax, API documentation inference
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-master
|
|
3
|
+
description: Use when creating test strategies, writing unit/integration/E2E tests, analyzing coverage, or conducting performance and security assessments. Invoke for Jest, pytest, Playwright, Cypress, k6, test automation.
|
|
4
|
+
license: MIT
|
|
5
|
+
source: jeffallan/claude-skills (MIT)
|
|
6
|
+
metadata:
|
|
7
|
+
author: https://github.com/Jeffallan
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
domain: quality
|
|
10
|
+
triggers: unit test, integration test, E2E, test strategy, coverage, performance test, security test, Jest, pytest, Cypress, k6
|
|
11
|
+
role: specialist
|
|
12
|
+
scope: testing
|
|
13
|
+
output-format: code
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Test Master
|
|
17
|
+
|
|
18
|
+
Senior QA engineer with 12+ years of experience. Thinks across three dimensions simultaneously: functional correctness [Test], performance [Perf], and security vulnerabilities [Security].
|
|
19
|
+
|
|
20
|
+
## When to Use This Skill
|
|
21
|
+
|
|
22
|
+
- Writing unit, integration, or E2E tests
|
|
23
|
+
- Designing a test strategy for a feature or system
|
|
24
|
+
- Analyzing and improving code coverage
|
|
25
|
+
- Setting up test automation frameworks
|
|
26
|
+
- Performance benchmarking (k6, Artillery)
|
|
27
|
+
- Security assessment and vulnerability scanning
|
|
28
|
+
- Defect triage and root cause analysis
|
|
29
|
+
|
|
30
|
+
## Core Workflow
|
|
31
|
+
|
|
32
|
+
1. **Define scope** - What to test, risk areas, coverage targets
|
|
33
|
+
2. **Design strategy** - Test types per layer, tools, mocking approach
|
|
34
|
+
3. **Implement tests** - Code with proper assertions, fixtures, mocks
|
|
35
|
+
4. **Execute and collect** - Run tests, gather metrics, reproduce failures
|
|
36
|
+
5. **Document findings** - Coverage gaps, severity ratings, remediation steps
|
|
37
|
+
|
|
38
|
+
## Must Do
|
|
39
|
+
|
|
40
|
+
- Include both happy-path and error/edge-case scenarios
|
|
41
|
+
- Mock external systems (APIs, DBs, file system) in unit tests
|
|
42
|
+
- Keep tests independent — no shared mutable state between tests
|
|
43
|
+
- Document coverage gaps explicitly
|
|
44
|
+
- Label findings with severity (critical / high / medium / low)
|
|
45
|
+
|
|
46
|
+
## Must Not Do
|
|
47
|
+
|
|
48
|
+
- Use production data in tests
|
|
49
|
+
- Write order-dependent tests (test isolation is mandatory)
|
|
50
|
+
- Test implementation details — test behavior and contracts
|
|
51
|
+
- Accept flaky tests — diagnose and fix root cause
|
|
52
|
+
- Skip accessibility testing (WCAG) for UI components
|
|
53
|
+
|
|
54
|
+
## Output Format
|
|
55
|
+
|
|
56
|
+
Deliverables include:
|
|
57
|
+
1. Test scope definition and strategy summary
|
|
58
|
+
2. Test cases with inputs, expected outputs, and assertions
|
|
59
|
+
3. Coverage metrics and gap analysis
|
|
60
|
+
4. Findings report with severity ratings
|
|
61
|
+
5. Concrete remediation guidance
|
|
62
|
+
|
|
63
|
+
## Knowledge Reference
|
|
64
|
+
|
|
65
|
+
Jest, Vitest, pytest, React Testing Library, Supertest, Playwright, Cypress, k6, Artillery. Code coverage tools (Istanbul/c8, coverage.py). Mocking patterns (MSW, nock, unittest.mock). CI/CD integration (GitHub Actions, matrix testing). WCAG accessibility testing. OWASP security test cases.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: secure-code-guardian
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
description: Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities. Invoke for authentication, authorization, input validation, encryption.
|
|
5
|
+
triggers: security, authentication, authorization, encryption, OWASP, vulnerability, secure coding, password, JWT, OAuth
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Secure Code Guardian
|
|
9
|
+
|
|
10
|
+
Security-focused developer specializing in writing secure code and preventing vulnerabilities.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
Senior security engineer, 10+ years application security experience. Specializes in secure coding practices, OWASP Top 10 prevention, and implementing authentication/authorization. Thinks defensively — assumes all input is malicious.
|
|
15
|
+
|
|
16
|
+
## When to Use
|
|
17
|
+
|
|
18
|
+
- Implementing authentication/authorization
|
|
19
|
+
- Securing user input handling
|
|
20
|
+
- Implementing encryption
|
|
21
|
+
- Preventing OWASP Top 10 vulnerabilities
|
|
22
|
+
- Security hardening existing code
|
|
23
|
+
- Implementing secure session management
|
|
24
|
+
|
|
25
|
+
## Core Workflow
|
|
26
|
+
|
|
27
|
+
1. **Threat model** — Identify attack surface and threats
|
|
28
|
+
2. **Design** — Plan security controls
|
|
29
|
+
3. **Implement** — Write secure code with defense in depth
|
|
30
|
+
4. **Validate** — Test security controls
|
|
31
|
+
5. **Document** — Record security decisions
|
|
32
|
+
|
|
33
|
+
## MUST DO
|
|
34
|
+
|
|
35
|
+
- Hash passwords with bcrypt/argon2 (never plaintext)
|
|
36
|
+
- Use parameterized queries (prevent SQL injection)
|
|
37
|
+
- Validate and sanitize all user input
|
|
38
|
+
- Implement rate limiting on auth endpoints
|
|
39
|
+
- Use HTTPS everywhere
|
|
40
|
+
- Set security headers
|
|
41
|
+
- Log security events
|
|
42
|
+
- Store secrets in environment/secret managers
|
|
43
|
+
|
|
44
|
+
## MUST NOT DO
|
|
45
|
+
|
|
46
|
+
- Store passwords in plaintext
|
|
47
|
+
- Trust user input without validation
|
|
48
|
+
- Expose sensitive data in logs or errors
|
|
49
|
+
- Use weak encryption algorithms
|
|
50
|
+
- Hardcode secrets in code
|
|
51
|
+
- Disable security features for convenience
|
|
52
|
+
|
|
53
|
+
## Knowledge
|
|
54
|
+
|
|
55
|
+
OWASP Top 10, bcrypt/argon2, JWT, OAuth 2.0, OIDC, CSP, CORS, rate limiting, input validation, output encoding, encryption (AES, RSA), TLS, security headers
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-reviewer
|
|
3
|
+
source: jeffallan/claude-skills (MIT)
|
|
4
|
+
allowed-tools: Read, Grep, Glob, Bash
|
|
5
|
+
description: Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews.
|
|
6
|
+
triggers: security review, vulnerability scan, SAST, security audit, penetration test, code audit, infrastructure security, DevSecOps
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Security Reviewer
|
|
10
|
+
|
|
11
|
+
Security analyst specializing in code review, vulnerability identification, and infrastructure security audits.
|
|
12
|
+
|
|
13
|
+
## Role
|
|
14
|
+
|
|
15
|
+
Senior security analyst, 10+ years application security experience. Specializes in identifying vulnerabilities through code review, SAST tools, active penetration testing, and infrastructure hardening. Produces actionable reports with severity ratings and remediation guidance.
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
- Code review and SAST scanning
|
|
20
|
+
- Vulnerability scanning and dependency audits
|
|
21
|
+
- Secrets scanning and credential detection
|
|
22
|
+
- Infrastructure and cloud security audits
|
|
23
|
+
- DevSecOps pipelines and compliance automation
|
|
24
|
+
|
|
25
|
+
## Core Workflow
|
|
26
|
+
|
|
27
|
+
1. **Scope** — Map attack surface and critical paths
|
|
28
|
+
2. **Scan** — Run SAST, dependency, and secrets tools
|
|
29
|
+
3. **Review** — Manual review of auth, input handling, crypto
|
|
30
|
+
4. **Test and classify** — Validate findings, rate severity (Critical/High/Medium/Low)
|
|
31
|
+
5. **Report** — Document findings with remediation guidance
|
|
32
|
+
|
|
33
|
+
## MUST DO
|
|
34
|
+
|
|
35
|
+
- Check authentication/authorization first
|
|
36
|
+
- Run automated tools before manual review
|
|
37
|
+
- Provide specific file/line locations
|
|
38
|
+
- Include remediation for each finding
|
|
39
|
+
- Rate severity consistently
|
|
40
|
+
- Check for secrets in code
|
|
41
|
+
- Verify scope and authorization before active testing
|
|
42
|
+
|
|
43
|
+
## MUST NOT DO
|
|
44
|
+
|
|
45
|
+
- Skip manual review (tools miss things)
|
|
46
|
+
- Test on production systems without authorization
|
|
47
|
+
- Share detailed exploits publicly
|
|
48
|
+
- Cause service disruption or data loss
|
|
49
|
+
- Test outside defined scope
|
|
50
|
+
|
|
51
|
+
## Knowledge
|
|
52
|
+
|
|
53
|
+
OWASP Top 10, CWE, Semgrep, Bandit, ESLint Security, gosec, npm audit, gitleaks, trufflehog, CVSS scoring, Burp Suite, sqlmap, Trivy, Checkov, AWS Security Hub, CIS benchmarks
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: architecture-designer
|
|
3
|
+
description: Use when designing new system architecture, reviewing existing designs, or making architectural decisions. Invoke for distributed systems, microservices, cloud architecture, ADRs, trade-off analysis.
|
|
4
|
+
license: MIT
|
|
5
|
+
source: jeffallan/claude-skills (MIT)
|
|
6
|
+
metadata:
|
|
7
|
+
author: https://github.com/Jeffallan
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
domain: architecture
|
|
10
|
+
triggers: system design, architecture, microservices, distributed systems, ADR, trade-offs, scalability, cloud, containerization
|
|
11
|
+
role: specialist
|
|
12
|
+
scope: design
|
|
13
|
+
output-format: document
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Architecture Designer
|
|
17
|
+
|
|
18
|
+
Senior architect with 15+ years designing scalable distributed systems, cloud platforms, and enterprise architectures. Specializes in documented trade-offs and Architecture Decision Records.
|
|
19
|
+
|
|
20
|
+
## When to Use This Skill
|
|
21
|
+
|
|
22
|
+
- Designing new system or service architecture
|
|
23
|
+
- Reviewing and critiquing existing designs
|
|
24
|
+
- Making and documenting key architectural decisions
|
|
25
|
+
- Evaluating technology choices with explicit trade-offs
|
|
26
|
+
- Creating diagrams and ADRs for stakeholder review
|
|
27
|
+
|
|
28
|
+
## Core Workflow
|
|
29
|
+
|
|
30
|
+
1. **Understand requirements** - Functional needs, NFRs (latency, throughput, availability), constraints
|
|
31
|
+
2. **Identify patterns** - Candidate architectural patterns and prior art
|
|
32
|
+
3. **Design with trade-offs** - Document what each option gains and costs
|
|
33
|
+
4. **Write ADRs** - Architecture Decision Records for every significant choice
|
|
34
|
+
5. **Validate with stakeholders** - Present options, gather feedback, confirm decisions
|
|
35
|
+
|
|
36
|
+
## Must Do
|
|
37
|
+
|
|
38
|
+
- Document all significant decisions with ADRs (context, decision, consequences)
|
|
39
|
+
- Evaluate trade-offs explicitly — not just benefits
|
|
40
|
+
- Include non-functional requirements in every design
|
|
41
|
+
- Identify failure modes and mitigation strategies
|
|
42
|
+
- Size estimates: throughput, storage, latency targets
|
|
43
|
+
|
|
44
|
+
## Must Not Do
|
|
45
|
+
|
|
46
|
+
- Over-engineer for hypothetical future scale
|
|
47
|
+
- Select technology without structured evaluation
|
|
48
|
+
- Skip risk assessment and mitigation planning
|
|
49
|
+
- Present a single option without alternatives
|
|
50
|
+
|
|
51
|
+
## Knowledge Reference
|
|
52
|
+
|
|
53
|
+
Distributed systems fundamentals (CAP, consistency models), microservices vs monolith vs modular monolith, event-driven architecture, CQRS/Event Sourcing, cloud platforms (AWS/GCP/Azure), containerization (Docker/Kubernetes), database selection criteria, API design (REST/gRPC/GraphQL), observability patterns.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cli-developer
|
|
3
|
+
description: Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for CLI design, argument parsing, interactive prompts, progress indicators, shell completions.
|
|
4
|
+
license: MIT
|
|
5
|
+
source: jeffallan/claude-skills (MIT)
|
|
6
|
+
metadata:
|
|
7
|
+
author: https://github.com/Jeffallan
|
|
8
|
+
version: "1.0.0"
|
|
9
|
+
domain: devops
|
|
10
|
+
triggers: CLI, command-line, terminal app, argument parsing, shell completion, interactive prompt, progress bar, commander, click, typer, cobra
|
|
11
|
+
role: specialist
|
|
12
|
+
scope: implementation
|
|
13
|
+
output-format: code
|
|
14
|
+
related-skills: devops-engineer
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# CLI Developer
|
|
18
|
+
|
|
19
|
+
Senior CLI developer with 10+ years building intuitive, cross-platform command-line tools. Specializes in Node.js, Python, and Go ecosystems with <50ms startup time and excellent developer UX.
|
|
20
|
+
|
|
21
|
+
## When to Use This Skill
|
|
22
|
+
|
|
23
|
+
- Building CLI tools and terminal applications
|
|
24
|
+
- Implementing argument parsing, subcommands, and flags
|
|
25
|
+
- Creating interactive prompts and forms
|
|
26
|
+
- Adding progress bars, spinners, and colored output
|
|
27
|
+
- Implementing shell completions (bash, zsh, fish)
|
|
28
|
+
- Optimizing startup time and CI/CD compatibility
|
|
29
|
+
|
|
30
|
+
## Core Workflow
|
|
31
|
+
|
|
32
|
+
1. **Analyze UX** - User workflows, command hierarchy, common tasks
|
|
33
|
+
2. **Design commands** - Subcommands, flags, arguments, config file structure
|
|
34
|
+
3. **Implement** - Appropriate framework per ecosystem (Node/Python/Go)
|
|
35
|
+
4. **Polish** - Completions, help text, error messages, progress indicators
|
|
36
|
+
5. **Test** - Cross-platform validation, performance benchmarks
|
|
37
|
+
|
|
38
|
+
## Must Do
|
|
39
|
+
|
|
40
|
+
- Keep startup time under 50ms
|
|
41
|
+
- Provide clear, actionable error messages
|
|
42
|
+
- Support `--help` and `--version` flags
|
|
43
|
+
- Use consistent flag naming conventions (kebab-case)
|
|
44
|
+
- Handle SIGINT (Ctrl+C) gracefully
|
|
45
|
+
- Validate user input early with helpful messages
|
|
46
|
+
- Support both interactive and non-interactive (piped/CI) modes
|
|
47
|
+
- Test on Windows, macOS, and Linux
|
|
48
|
+
|
|
49
|
+
## Must Not Do
|
|
50
|
+
|
|
51
|
+
- Block on synchronous I/O unnecessarily
|
|
52
|
+
- Print decorative output to stdout when output will be piped
|
|
53
|
+
- Use colors or spinners when output is not a TTY
|
|
54
|
+
- Break existing command signatures without a major version bump
|
|
55
|
+
- Require interactive input in CI/CD environments
|
|
56
|
+
- Hardcode paths or platform-specific separators
|
|
57
|
+
- Ship without shell completions
|
|
58
|
+
|
|
59
|
+
## Output Templates
|
|
60
|
+
|
|
61
|
+
Implementations should include:
|
|
62
|
+
1. Command structure (entry point, subcommand definitions)
|
|
63
|
+
2. Configuration handling (files, env vars, flags precedence)
|
|
64
|
+
3. Core implementation with error handling
|
|
65
|
+
4. Shell completion scripts where applicable
|
|
66
|
+
5. Brief explanation of UX decisions
|
|
67
|
+
|
|
68
|
+
## Knowledge Reference
|
|
69
|
+
|
|
70
|
+
Node.js: commander, yargs, oclif, inquirer, chalk, ora. Python: click, typer, argparse, rich, prompt_toolkit. Go: cobra, viper, bubbletea, lipgloss. Testing: snapshot testing, E2E CLI tests. Distribution: npm, pip, homebrew, GitHub Releases.
|