code-workflow

4-stage workflow for code changes: research → plan → user review → implement (TDD). Applies to all tasks requiring code changes: issue implementation, fix_plan items, new feature additions. TDD (Red→Green→Refactor) is applied by default in the implementation stage; users can opt out with --no-tdd. Use when: "coding workflow", "research plan implement", "research first", "write plan", "plan md", "user review", "review before implement", "code plan", "implementation process", "research md", "code changes".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-workflow" with this command: npx skills add drumrobot/code-workflow

Coding Workflow

A Research → Plan → User Review → Implement 4-stage procedure for code change tasks.

Trivial tasks such as simple configuration changes or 1~2 line edits may skip this workflow.

Step-by-Step Procedure

Step 1: Research (Read the Codebase)

Read and understand the relevant code deeply, then write findings to .ralph/docs/generated/research-<task>.md.

  • Do not skim a file and move on at the signature level
  • Understand existing layers, ORM relationships, and duplicate API presence
  • Mandatory exploration of existing test files: Find related *.test.*, *.spec.* files and understand what cases are already covered
  • Do not summarize in chat — always write to a file

Step 2: Plan (Write Plan MD)

Write a detailed implementation plan in .ralph/docs/generated/plan-<task>.md.

Include:

  • Detailed description of the approach
  • Code snippets showing actual changes
  • List of file paths to be modified
  • Considerations / trade-offs
  • Verification plan (required): For each change group, specify verification procedure, command/URL, and expected result

Step 3: User Review

After writing the plan MD, report STATUS: BLOCKED and wait for user review.

Report content:

  • Plan file path: .ralph/docs/generated/plan-<task>.md
  • Number of changed files, summary of modification scope

Items for the user to verify:

  • Is the approach appropriate?
  • Is the modification scope within the issue/PR scope?
  • Does it match existing patterns/conventions?

On user feedback → revise plan and re-review. On approval → proceed to step 4.

Step 4: Implement (TDD applied by default)

Once the plan is approved, implement using the tdd skill's cycle topic (Red→Green→Refactor). After implementation, run tests using the tdd skill's run topic and report results.

TDD opt-out: If the user specifies --no-tdd, implement without tests.

Commit after implementation: If build + tests pass, proceed to commit. Do not ask the user whether to commit. If a related existing commit exists, confirm whether to amend via AskUserQuestion.

Other:

  • Mark completed tasks/steps as [x] in fix_plan.md
  • Do not stop until all steps are complete
  • Do not use unknown types
  • Continuously run type checks during implementation (pnpm typecheck or tsc --noEmit)
  • Do not introduce new type errors

When Going in the Wrong Direction

Do not patch over a bad approach — revert and restart with a narrower scope.

cmd /c git checkout -- <files>   # revert changes

Revise the plan and restart from step 3 (user review).

Applicability by Task Complexity

Task ComplexityScope
trivial (1~2 line edits, config value changes)Can be skipped — implement directly
moderate (3~10 files, logic changes)Start from step 2 (plan)
complex (10+ files, new features, architecture changes)Perform all steps from step 1 (research)

Self-Improvement

After this skill invocation completes, self-improve based on the conversation:

  1. Detect limitations, failures, and workaround patterns for this skill in the conversation
  2. If improvement candidates are found, run /skill-kit upgrade code-workflow

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Claude Chrome

Use Claude Code with Chrome browser extension for web browsing and automation tasks. Alternative to OpenClaw's built-in browser tools.

Registry SourceRecently Updated
Coding

App Builder

Build, edit, and deploy Instant-backed apps using npx instant-cli, create-instant-app (Next.js + Codex), GitHub (gh), and Vercel (vercel). Use when asked to create a new app, modify an existing app, fix bugs, add features, or deploy/update an app. Projects live under ~/apps; always work inside the relevant app folder.

Registry SourceRecently Updated
Coding

Opengraph Io

Extract web data, capture screenshots, scrape content, and generate AI images via OpenGraph.io. Use when working with URLs (unfurling, previews, metadata), capturing webpage screenshots, scraping HTML content, asking questions about webpages, or generating images (diagrams, icons, social cards, QR codes). Triggers: 'get the OG tags', 'screenshot this page', 'scrape this URL', 'generate a diagram', 'create a social card', 'what does this page say about'.

Registry SourceRecently Updated
Coding

Xlsx Pro

Compétence pour manipuler les fichiers Excel (.xlsx, .xlsm, .csv, .tsv). Utiliser quand l'utilisateur veut : ouvrir, lire, éditer ou créer un fichier tableur ; ajouter des colonnes, calculer des formules, formater, créer des graphiques, nettoyer des données ; convertir entre formats tabulaires. Le livrable doit être un fichier tableur. NE PAS utiliser si le livrable est un document Word, HTML, script Python standalone, ou intégration Google Sheets.

Registry SourceRecently Updated