ワンクリックで
build
Plan and build a new feature with quality gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Plan and build a new feature with quality gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit a project against a canon's rules and checklist. Read-only — produces prioritized report without fixing. Works with any canon (nextjs, sql, typescript, etc.).
Lens home base - status, help, and setup
Simple changes done right. Make the change, clean up after yourself, report what happened.
Review against canons + quality gate, fix findings, verify. Claude-native — no external models.
Plan and improve existing code with quality gates.
13-dimension comprehensive code scanner. Read-only — reports CODE_SCAN_INDEX without making changes. Language-agnostic with rubric augmentation via AUTO-DETECT.md.
| name | build |
| description | Plan and build a new feature with quality gates. |
Plan and build a new feature with quality gates, canon review, and verification.
No arguments? Describe this skill and stop. Do not execute.
Don't use for: Improving existing code → /improve | Simple changes → /change | Review + fix existing code → /cleanup
| Flag | Purpose |
|---|---|
--dry-run | Show the plan without making changes |
--rollback | Restore from last build stash |
Determine what to build:
.md file, read it as a PRD.{TARGET} to CWD or any output path specified.Check files already in scope and the description for technology signals:
| Signal | Canon |
|---|---|
.ts, .tsx, tsconfig.json | typescript, javascript |
.js, .jsx, .mjs | javascript |
.cs, *.csproj | csharp-depth |
.java | java |
angular.json, *.component.ts | angular |
.sql files OR SQL strings in source | database |
.css, .scss, .html with components | ui-ux |
*.test.*, *.spec.* | testing patterns |
.md, README | writing, docs |
Load matching canon SKILL.md files from .claude/canon/. Extract anti-patterns and core principles. These become {CANON_CRITERIA}.
If .claude/rubric/AUTO-DETECT.md exists, load matching rubrics.
Load lessons from .claude/universal-lessons.md and .claude/lessons.md if they exist.
Produce a numbered implementation plan:
Present the plan to the conversation.
If --dry-run, display the plan and stop. Emit BUILD_DRY_RUN.
Before writing any files:
git stash push -m "build:$(basename {TARGET}):$(date +%s)"
Report the stash ref.
If --rollback was specified instead:
git stash list | grep "build:" | head -1
# Extract stash ref and pop it
git stash pop <ref>
Then stop.
Create files per the plan. For each file:
{CANON_CRITERIA}Follow the quality gate rules during implementation to pass on the first attempt:
SECURITY (instant fail):
NAMING:
SIZE LIMITS:
CODE QUALITY:
Run the quality gate:
tsx .claude/scripts/quality-gate.ts {TARGET} 2>&1
If the gate script is not at that path:
find . -path "*/.claude/scripts/quality-gate.ts" 2>/dev/null | head -1
Parse violations. If any exist, fix them and rerun. Max 2 retries.
Review ALL new files against:
{CANON_CRITERIA}.claude/rubric/)Produce findings:
FINDING: {severity} | {category} | {file:line} | {description} | {suggested fix}
Severity levels:
Fix by priority: CRITICAL → HIGH → MEDIUM (if contained) → LOW (if trivial).
Scope constraint: Only modify code directly related to findings. Do not refactor unflagged code.
Complexity budget: Net-zero or net-negative lines/functions/types. Security fixes exempt.
Rerun the gate:
tsx .claude/scripts/quality-gate.ts {TARGET} 2>&1
Must pass. Max 2 retries. If still failing after retries, report remaining violations.
npm run lint 2>&1 || true
npm test 2>&1 || true
If lint errors or test failures were caused by the new code, fix them. Do not modify existing tests to match new code.
## /build Report: {description}
### Plan
{numbered list from Step 3}
### Files Created
| File | Purpose | Lines |
|------|---------|-------|
| src/foo.ts | Main module | 120 |
### Gate Results
| Gate | Status |
|------|--------|
| Gate #1 | {pass | N violations → fixed} |
| Gate #2 | {pass | N violations → fixed} |
### Review Findings
| # | Severity | File:Line | What | Canon |
|---|----------|-----------|------|-------|
| 1 | HIGH | src/foo.ts:30 | Added input validation | security-mindset |
### Verification
- Lint: {pass | N warnings | N errors}
- Tests: {pass | N failures}
### Rollback
Rollback: /build --rollback
BUILD_COMPLETE
| Workflow | When to Use |
|---|---|
/build | New feature from description/PRD — creates new files |
/improve | Enhance existing code — plans intentional changes |
/cleanup | Review + fix existing code against canons |
/change | One small change, done right |