Templateclaw templateclaw-dev
Apply dev methodology templates — TDD workflow, CI/CD pipeline, code review checklist, git workflow, and API design guide. Generates actionable guides and configuration files.
install
source · Clone the upstream repo
git clone https://github.com/jeromwolf/templateclaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jeromwolf/templateclaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/templateclaw-dev" ~/.claude/skills/jeromwolf-templateclaw-templateclaw-dev && rm -rf "$T"
manifest:
skills/templateclaw-dev/SKILL.mdsource content
TemplateClaw — Dev Methodology Guides
Generate actionable development methodology guides and configurations.
When Invoked
- If argument provided (e.g.,
), generate that guide/templateclaw-dev tdd - If no argument, ask: "Which guide? (tdd / cicd / review / git / api)"
Available Guides
TDD Workflow Guide (/templateclaw-dev tdd
)
/templateclaw-dev tddGenerate for the detected project language:
Output files:
— Step-by-step TDD workflowdocs/tdd-guide.md- Test config file (jest.config.js / pytest.ini / etc.)
- Example test file demonstrating Red→Green→Refactor
Content:
# TDD Workflow ## The Cycle 1. RED: Write a failing test 2. GREEN: Write minimum code to pass 3. REFACTOR: Clean up, maintain tests passing ## Rules - Never write production code without a failing test - One assert per test (when possible) - Test behavior, not implementation ## Test Structure (AAA) - Arrange: Set up test data - Act: Execute the behavior - Assert: Verify the outcome ## Coverage Targets - Unit: 80%+ - Integration: 60%+ - E2E: Critical paths only
CI/CD Pipeline Setup (/templateclaw-dev cicd
)
/templateclaw-dev cicdDetect repository and generate:
GitHub Actions (
.github/workflows/ci.yml):
- Lint → Test → Build → Deploy - Matrix testing (Node 18/20/22 or Python 3.10/3.11/3.12) - Caching (node_modules / pip / cargo) - Security scanning (npm audit / safety / cargo audit) - Deployment (conditional on branch)
Output: Working CI/CD config +
docs/cicd-guide.md explaining each stage.
Code Review Checklist (/templateclaw-dev review
)
/templateclaw-dev reviewOutput: docs/code-review-checklist.md
## Pre-Review (Author) - [ ] Tests pass locally - [ ] No lint warnings - [ ] Self-reviewed diff - [ ] PR description explains WHY ## Logic & Correctness - [ ] Edge cases handled - [ ] Error paths covered - [ ] No off-by-one errors - [ ] Concurrency-safe (if applicable) ## Security - [ ] No hardcoded secrets - [ ] Input validation at boundaries - [ ] SQL injection prevented (parameterized queries) - [ ] XSS prevention (output encoding) ## Performance - [ ] No N+1 queries - [ ] Appropriate indexing - [ ] No unnecessary re-renders (frontend) ## Maintainability - [ ] Functions under 50 lines - [ ] Clear naming (no abbreviations) - [ ] DRY without over-abstraction
Git Workflow Guide (/templateclaw-dev git
)
/templateclaw-dev gitOutput: docs/git-workflow.md
Covers:
- Branch naming:
,feature/
,fix/
,hotfix/chore/ - Commit message convention (Conventional Commits)
- PR template
- Merge strategy (squash vs rebase)
- Release tagging (semver)
- Protected branch rules
API Design Guide (/templateclaw-dev api
)
/templateclaw-dev apiOutput:
+ example OpenAPI specdocs/api-design.md
Covers:
- RESTful conventions (HTTP methods, status codes, URL structure)
- Request/response format (JSON:API or custom)
- Authentication (Bearer token, API key)
- Pagination (cursor-based vs offset)
- Error format (RFC 7807 Problem Details)
- Rate limiting headers
- Versioning strategy (URL vs header)
- OpenAPI 3.1 spec template
Auto-Detection
Detect project type to customize outputs:
- Language-specific test frameworks
- CI provider (GitHub Actions / GitLab CI / etc.)
- Package manager (npm/yarn/pnpm/pip/cargo)