원클릭으로
implement
Full TDD loop — plan, branch, write code + tests, format, lint, test, review, commit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Full TDD loop — plan, branch, write code + tests, format, lint, test, review, commit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review a pull request or pending changes. Performs a focused code review against the current branch's diff (or staged diff if invoked pre-commit), surfacing correctness bugs, missing tests, style violations, and unclear naming. Use when the user asks to "review this", "review the PR", "code review", or before commits/PRs.
Complete a security review of pending changes on the current branch. Focuses on injection, authn/authz, secrets, SSRF, deserialisation, insecure defaults, and supply-chain risk. Use when the user asks to "security review", "security audit", "check for vulns", or before raising a PR.
Pre-commit gate (fmt + clippy + test) then create a conventional commit with explicit file staging.
Create or update ARCHITECTURE.md with system components, data flows, and ADRs
Format Rust code with rustfmt and report what changed.
Full TDD loop — plan, branch, write code + tests, fmt, clippy, test, review, commit.
| name | implement |
| description | Full TDD loop — plan, branch, write code + tests, format, lint, test, review, commit. |
Drives feature implementation from story acceptance criteria using TDD.
stories/S-NNN-*.md with the status: in-progress and branch: set.feature/S-NNN-<slug>).1. Load the story.
cat stories/S-NNN-*.md
Acceptance criteria are the spec. Each must be addressed.
2. Plan.
Read the relevant parts of ARCHITECTURE.md and existing module code to produce an implementation plan. List:
Wait for user approval before writing code.
2a. Persist plan to story. Append the approved plan to the story file. This captures the implementation approach for future reference.
story_file=$(ls stories/S-*.md 2>/dev/null | head -1)
if [[ -n "$story_file" ]]; then
cat >> "$story_file" << 'PLANEOF'
## Implementation plan
<the approved plan text — files, types, protocols, risks>
PLANEOF
fi
Then git add the story file so the plan is version-controlled alongside the code.
3. Branch check.
git rev-parse --abbrev-ref HEAD
Must be feature/S-NNN-<slug>. If on main, halt: run the story skill to set status=in-progress first.
4. Write code + tests together (TDD). For each unit of behaviour:
XCTExpectFailure if desired).swift test --filter <TestTarget>
Key Swift conventions:
struct over class unless reference semantics are requiredenum for typed errors (Error conformance)!) in production code (except // SAFETY: justified)actor for shared mutable stateResult<Success, Failure> over completion handlersPackage.swift, then run xcodegen generate5. Format.
swift format --recursive Sources Tests --in-place
6. Run tests + lint.
swift test 2>&1
swift format lint --recursive Sources Tests 2>&1
7. Code review.
Run the review skill (.nidex/skills/review/SKILL.md). Auto-apply mechanical fixes. Surface [needs-decision] items. Re-run tests after changes.
8. Commit. Run the commit skill (.nidex/skills/commit/SKILL.md).
// swiftlint:disable without justification.