clarc-way
The clarc Way — opinionated end-to-end software development methodology. 8-stage pipeline from idea to shipped code: /idea → /evaluate → /explore → /prd → /plan → /tdd → /code-review → commit. Activate when a user asks how to structure their workflow, which commands to use, or when to use clarc.
Best use case
clarc-way is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
The clarc Way — opinionated end-to-end software development methodology. 8-stage pipeline from idea to shipped code: /idea → /evaluate → /explore → /prd → /plan → /tdd → /code-review → commit. Activate when a user asks how to structure their workflow, which commands to use, or when to use clarc.
Teams using clarc-way should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/clarc-way/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How clarc-way Compares
| Feature / Agent | clarc-way | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
The clarc Way — opinionated end-to-end software development methodology. 8-stage pipeline from idea to shipped code: /idea → /evaluate → /explore → /prd → /plan → /tdd → /code-review → commit. Activate when a user asks how to structure their workflow, which commands to use, or when to use clarc.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# The clarc Way An opinionated, end-to-end methodology for professional software development with Claude Code. Not a tool collection — a structured process from raw idea to shipped code. ## When to Activate - User asks "where do I start?" or "what should I do first?" - User is unsure which commands or agents to use - User wants to understand the recommended workflow - Starting a new feature, fixing a bug, or refactoring - Onboarding a developer who is new to clarc and needs a guided tour of the full pipeline from idea to merged PR - Deciding which phases to skip for a well-defined ticket versus an exploratory feature with unclear scope - Explaining why quality gates (TDD, code review, security scan) are mandatory steps rather than optional add-ons - Comparing the clarc way to another AI-assisted development framework like SPARC or a custom workflow --- ## The Pipeline ``` ┌─────────────────────────────────────────────────────────────────┐ │ THE CLARC WAY │ │ │ │ Phase 0: Discovery (new features only) │ │ ───────────────────────────────────── │ │ /idea → /evaluate → /explore → /prd │ │ │ │ Phase 1: Planning │ │ ───────────────────────────────────── │ │ /plan → architecture + task breakdown │ │ │ │ Phase 2: Implementation │ │ ───────────────────────────────────── │ │ /tdd → RED (write failing test) │ │ → GREEN (minimal implementation) │ │ → IMPROVE (refactor) │ │ │ │ Phase 3: Quality │ │ ───────────────────────────────────── │ │ /code-review → fix CRITICAL + HIGH │ │ /security → (when auth/APIs involved) │ │ │ │ Phase 4: Ship │ │ ───────────────────────────────────── │ │ git commit (conventional format) │ │ + push + PR via commit-commands skills │ └─────────────────────────────────────────────────────────────────┘ ``` --- ## Skip Matrix Not every phase is required for every task. Use this table to decide: | Task Type | Phase 0 | Phase 1 | Phase 2 | Phase 3 | Phase 4 | |-----------|---------|---------|---------|---------|---------| | New feature (unknown value) | ✅ | ✅ | ✅ | ✅ | ✅ | | New feature (clear spec) | ⏭ | ✅ | ✅ | ✅ | ✅ | | Bug fix | ⏭ | ⏭ | ✅ | ✅ | ✅ | | Refactor | ⏭ | ✅ | ✅ | ✅ | ✅ | | Chore / dependency update | ⏭ | ⏭ | ⏭ | ⏭ | ✅ | | Documentation only | ⏭ | ⏭ | ⏭ | ⏭ | ✅ | --- ## Phase 0: Discovery > Run only for new features whose value or approach is not yet clear. ``` /idea <description> ``` Structures the raw idea: problem statement, target user, success metric. Output: `docs/ideas/YYYY-MM-DD-<name>.md` ``` /evaluate <name> ``` Go / No-Go / Modify recommendation. Uses the `product-evaluator` agent. **Stop here if No-Go.** Do not proceed to implementation. Output: `docs/evals/YYYY-MM-DD-<name>-eval.md` ``` /explore <name> ``` Generates 2–4 solution options with trade-off analysis and Architecture Decision Record. Output: `docs/decisions/<name>-adr.md` ``` /prd <name> ``` Full Product Requirements Document synthesizing idea + eval + ADR. Output: `docs/specs/<name>-prd.md` --- ## Phase 1: Planning ``` /plan <what to build> ``` Invokes the `planner` agent: 1. Restates requirements in unambiguous terms 2. Breaks work into phases with specific, actionable steps 3. Identifies dependencies and risks 4. **Waits for explicit confirmation before any code is written** --- ## Phase 2: Implementation (TDD) ``` /tdd ``` Enforces write-tests-first via the `tdd-guide` agent: 1. **RED** — write a failing test that captures the desired behavior 2. Run test → confirm it fails for the right reason 3. **GREEN** — write minimal code to make the test pass 4. Run test → confirm it passes 5. **IMPROVE** — refactor while keeping tests green 6. Verify coverage is 80%+ Never skip the failing test step. A test that never failed proves nothing. --- ## Phase 3: Quality Gates These are not optional. They run after implementation, before commit. ``` /code-review ``` Routes to the right language specialist automatically (TypeScript, Go, Python, etc.). Fix all CRITICAL and HIGH findings. Address MEDIUM where feasible. ``` /security ``` Run when the change touches: authentication, user input, API endpoints, secrets, database access. Scans for OWASP Top 10, secrets, injection vectors, SSRF. --- ## Phase 4: Ship Ask Claude to generate a conventional commit message from staged changes: ``` Format: <type>: <description> Types: feat, fix, refactor, docs, test, chore, perf, ci ``` Use the `commit-commands:commit` skill for a git commit, or `commit-commands:commit-push-pr` to commit + push + open a PR in one step. --- ## Principles **Convention over Configuration** clarc selects the right tools. You focus on the problem. **Quality Gates are Mandatory** TDD + Code Review + Security are not checkboxes — they are the output. **Continuous Improvement** Session learnings become instincts via `/learn-eval`. Instincts become permanent skills via `/evolve`. **Opinionated, not Dogmatic** Phases can be skipped when genuinely not needed. The skip matrix above is the guide. --- ## Bug Fix Walkthrough Bug fixes skip Phase 0 (no discovery needed) and Phase 1 (no upfront plan for a known defect). Start directly at Phase 2 with a failing test. **Scenario:** `getUserById` returns `null` instead of throwing when the user does not exist. ``` # 1. Write the failing test first (RED) /tdd → [tdd-guide] Write: test_getUserById_throws_when_user_not_found → Run: npm test -- --testNamePattern getUserById → Confirm: test FAILS (currently returns null, not throws) # 2. Fix the implementation (GREEN) → Edit src/api/users.ts: throw NotFoundError when db returns null → Run: npm test -- --testNamePattern getUserById → Confirm: test PASSES # 3. Quality gate before commit /code-review → [typescript-reviewer] MEDIUM: missing error type export — fix it → Run: npm test (full suite, all green) # 4. Commit → git commit -m "fix: throw NotFoundError when getUserById receives unknown id" ``` **What was skipped:** `/idea`, `/evaluate`, `/explore`, `/prd`, `/plan` — all unnecessary for a well-understood defect. **What was not skipped:** `/tdd` (failing test first), `/code-review` (quality gate before commit). --- ## Comparison: clarc Way vs. SPARC | Dimension | clarc Way | SPARC (ruflo) | |-----------|-----------|---------------| | Phases | 5 (Discovery → Ship) | 5 (Spec → Completion) | | Tool integration | Every phase has dedicated commands + agents | Framework-level, less tooling | | Quality gates | Mandatory (/code-review, /security) | Refinement phase | | Learning loop | Instincts → Skills (automated) | Manual | | Entry point | `/clarc-way` (interactive guide) | SPARC template | | TDD enforcement | `/tdd` with agent enforcement | Part of refinement | --- ## Quick Reference | Situation | Start here | |-----------|-----------| | "I have a new idea" | `/idea` | | "Should I build this?" | `/evaluate` | | "I know what to build, where do I start?" | `/plan` | | "Fix this bug" | `/tdd` (write the failing test first) | | "Review my code" | `/code-review` | | "I'm done, ship it" | `commit-commands:commit-push-pr` | | "What has clarc learned?" | `/instinct-status` | | "Show me all commands" | `/find-skill` |
Related Skills
configure-clarc
Interactive installer for clarc — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.
clarc-onboarding
Staged learning path for clarc — Day 1 survival commands, Week 1 workflow integration, Month 1 advanced agents. Includes solo, team, and role-specific paths.
clarc-mcp-integration
Patterns for using clarc MCP server in multi-agent workflows, CI pipelines, and external tools
clarc-hooks-authoring
Reference guide for writing, testing, and configuring clarc hooks — PreToolUse, PostToolUse, SessionStart, SessionEnd patterns with suppression and cooldown.
zero-trust-patterns
Zero-Trust security patterns — mTLS between microservices (Istio/SPIFFE), SPIRE workload identity, OPA/Envoy authorization, NetworkPolicy default-deny-all, short-lived credentials, service mesh security, and Kubernetes RBAC hardening.
wireframing
Wireframing and prototyping workflow: fidelity levels (lo-fi sketch → mid-fi wireframe → hi-fi prototype), tool selection (Figma, Excalidraw, Balsamiq), user flow diagrams, wireframe annotation standards, information architecture (IA) mapping, and the handoff from wireframe to visual design. For developers who need to communicate UI structure before writing code.
webrtc-patterns
WebRTC patterns — peer connection setup, ICE/STUN/TURN configuration, signaling server design, SFU vs mesh topology, screen sharing, media track management, and reconnect/ICE restart handling.
webhook-patterns
Webhook patterns for receiving, verifying (HMAC), and idempotently processing third-party events. Covers Stripe, GitHub, and generic webhook patterns, delivery guarantees, retry handling, and testing.
web-performance
Web performance optimization: Core Web Vitals (LCP, CLS, INP), Lighthouse CI with budget configuration, bundle analysis (webpack-bundle-analyzer, vite-bundle-visualizer), hydration performance, network waterfall reading, image optimization (WebP/AVIF, srcset), and font performance.
wasm-performance
WebAssembly performance: wasm-opt binary optimization, size reduction (panic=abort, LTO, strip), profiling WASM in Chrome DevTools, memory management (linear memory, avoiding GC pressure), SIMD, and multi-threading with SharedArrayBuffer.
wasm-patterns
WebAssembly patterns: wasm-pack, wasm-bindgen (JS↔Wasm interop), WASI, Component Model, wasm-opt, Rust-to-WASM compilation, JS integration (web workers, streaming instantiation), and production deployment (CDN, Content-Type headers).
visual-testing
Visual Regression Testing: tool comparison (Chromatic/Percy/Playwright screenshots/BackstopJS), pixel-diff vs AI-based comparison, baseline management, flakiness strategies (masks, tolerances, waitForLoadState), CI integration with GitHub Actions, and Storybook integration.