specclaw
Health Uyari
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 7 GitHub stars
Code Basarisiz
- rm -rf รขโฌโ Recursive force deletion command in plugins/specclaw/tests/run-parser-tests.sh
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
๐ฆ Spec-driven development framework for claude code
๐ฆ SpecClaw
Spec-driven development for Claude Code.
SpecClaw is a Claude Code plugin that manages the full lifecycle of a code change: propose โ plan โ build โ verify โ pr. It writes structured proposals, specs, designs, and ordered task lists into your project, then drives implementation through the lifecycle with full traceability from requirement to merged PR.
Try it in 30 seconds:
/plugin marketplace add chan4lk/specclawโ/plugin install specclaw@chan4lkโ/specclaw:init
Why SpecClaw?
AI coding agents are powerful but lose context fast. SpecClaw gives every change a paper trail:
proposal.mdโ why this change mattersspec.mdโ requirements + acceptance criteriadesign.mdโ technical approach, file map, key decisions, riskstasks.mdโ ordered tasks, grouped into parallelizable wavesverify-report.mdโ evidence the implementation meets the spec- GitHub / Azure DevOps / Jira sync โ keep external trackers up to date
Each change lives in .specclaw/changes/<name>/ in your repo. The plugin operates on your project's CWD; nothing is hidden inside the plugin install.
Installation
Requires Claude Code v2.1 or later.
/plugin marketplace add chan4lk/specclaw
/plugin install specclaw@chan4lk
Future plugins by the same owner ship in the same chan4lk marketplace โ you only register it once.
Quickstart
> /specclaw:init
Initializes .specclaw/ in the current project, generates config.yaml, creates the dashboard.
> /specclaw:propose "add dark mode support"
Drafts .specclaw/changes/add-dark-mode/proposal.md for your review.
> /specclaw:plan add-dark-mode
Generates spec.md, design.md, tasks.md once the proposal is approved.
Append --author-spec to author spec.md interactively via the spec-author subagent, with an approval gate before design.md / tasks.md.
> /specclaw:build add-dark-mode
Executes tasks wave-by-wave, committing each.
> /specclaw:verify add-dark-mode
Runs tests/lint/build, evaluates against acceptance criteria, writes verify-report.md.
> /specclaw:pr add-dark-mode
Opens a GitHub PR using the spec + verify report as the description.
Project Structure
When initialized in a project, SpecClaw creates:
.specclaw/
โโโ config.yaml # Project config (models, git strategy, integrations)
โโโ STATUS.md # Cross-change dashboard
โโโ patterns.md # Recurring pattern registry (cross-change)
โโโ changes/
โโโ <change-name>/
โโโ proposal.md # Problem + solution + scope
โโโ spec.md # Requirements + acceptance criteria
โโโ design.md # Technical approach + file map
โโโ tasks.md # Ordered tasks with status markers
โโโ status.md # Per-change progress tracking
โโโ errors.md # Build error journal (auto-generated on failures)
โโโ learnings.md # Build learnings (spec gaps, patterns, insights)
โโโ verify-report.md # Verification results
Commands
All commands are namespaced under /specclaw:. Most are model-invokable โ Claude will route conversationally (e.g. "i have a proposal" fires /specclaw:propose). Auth setup commands (/specclaw:auth-azdo, /specclaw:auth-jira) are explicit-only because they handle credentials.
| Command | Purpose |
|---|---|
/specclaw:init |
Initialize .specclaw/ in the current project |
/specclaw:propose "<idea>" |
Draft a new change proposal |
/specclaw:plan <change> |
Generate spec + design + tasks (append --author-spec for interactive spec authoring with an approval gate) |
/specclaw:author-spec <change> |
Author spec.md interactively via the spec-author subagent (5 Whys, JTBD, Inversion, Pre-mortem, MoSCoW) |
/specclaw:build <change> |
Execute tasks wave-by-wave |
/specclaw:learn <change> "..." |
Record a spec gap, design miss, or pattern |
/specclaw:patterns |
Inspect the cross-change pattern registry |
/specclaw:verify <change> |
Validate implementation against spec |
/specclaw:pr <change> |
Open a GitHub PR |
/specclaw:pr-azdo <change> |
Open an Azure DevOps PR |
/specclaw:auth-azdo |
One-time Azure DevOps credentials setup |
/specclaw:auth-jira |
One-time Jira credentials setup |
/specclaw:issue <change> |
Create a Jira issue from a proposal |
/specclaw:azdo-issue <change> |
Create an Azure Boards Work Item from a proposal |
/specclaw:status |
Show the project dashboard |
/specclaw:archive <change> |
Archive a completed change |
/specclaw:auto |
Advance the queue of active changes autonomously |
Configuration
.specclaw/config.yaml:
version: 1
project:
name: "my-project"
description: "Short description"
models:
planning: "anthropic/claude-opus-4-6"
coding: "openai/gpt-5.1-codex"
review: "anthropic/claude-sonnet-4-5"
git:
strategy: "branch-per-change" # or "direct", or "worktree-per-change"
base_branch: "" # empty = auto-detect (origin/HEAD โ gh default โ main/master)
auto_commit: true
commit_prefix: "specclaw"
github:
sync: true
repo: "owner/repo"
label: "specclaw"
azdo: # set via /specclaw:auth-azdo
org: ""
project: ""
repo: ""
jira: # set via /specclaw:auth-jira
domain: ""
email: ""
project_key: ""
automation:
auto_verify: true
auto_archive: false
max_tasks_per_run: 5
workflow:
strict: true
code_review: false # Spawn code-reviewer agent on /specclaw:verify
code_review_block: false # Block /specclaw:pr if code review finds BLOCK issues
context:
discovery: true # Auto-discover project docs for phase payloads
max_lines: 3000 # Line budget for injected docs
folders: [] # Restrict discovery (empty = whole repo)
pin: [] # Always-include paths
exclude: [] # Patterns to skip
Update Check
/specclaw:status quietly checks the plugin repo for a newer published version (at most once per 24h, cached in .specclaw/.update-check โ add it to your .gitignore) and shows a one-line upgrade hint when one exists. Fail-silent by design: network problems never affect any command. Set plugin.update_check: false in config.yaml for zero network calls. No other lifecycle command touches the network for this.
Grounded Context Discovery
SpecClaw grounds its planning and review in the documentation your project already has. With context.discovery: true (the default), specclaw-discover-context scans the repo (git ls-files, so .gitignore is respected) and injects a budget-capped digest of your docs into the plan, build, and verify payloads โ after the curated .specclaw/context.md and knowledge base, which always take priority.
Candidates are ranked: files listed in a root llms.txt / llms-full.txt index first, then root canonical docs (CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md, ARCHITECTURE.md, CODE-CONVENTIONS.md, SECURITY.md), then doc directories (docs/, doc/, .github/, wiki/), then nested README.md/CLAUDE.md, then other markdown. Changelogs, licenses, code-of-conduct files, archive//deprecated//i18n/ content, dependency directories, and .specclaw/ itself are excluded by default.
Filter precedence per file: exclude match โ out; folders non-empty and file outside โ out; otherwise in. pin entries bypass filtering and ranking. Exclude patterns support simple names (node_modules), root-relative paths (./x), and globs (*.gen.md, **/dist). Over-budget files are never dropped silently โ every casualty is named in the digest footer. /specclaw:plan records the docs it used in a "Grounding sources" section of design.md. Set context.discovery: false for the exact pre-discovery behavior.
Base Branch Detection
Change branches fork from โ and merges/PRs target โ the repo's actual base branch, resolved as: git.base_branch config override โ origin/HEAD (self-healing via git remote set-head origin --auto) โ gh default branch โ main/master fallback. New change branches start from origin/<base> (fetched, offline-safe), never silently from whatever HEAD happens to be; creating a branch while off-base prints a warning so stacking is always deliberate. Repos on develop, trunk, or release branches work without configuration; set git.base_branch explicitly to pin a release flow.
Code Review
Set workflow.code_review: true to enable an automated code review step inside /specclaw:verify. After the acceptance-criteria check, a code-reviewer agent reviews changed files across 10 dimensions (correctness, security, YAGNI, one-liner opportunities, naming, complexity, test quality, design adherence, scope creep, dead code) and writes review-report.md with APPROVED, CHANGES_REQUESTED, or APPROVED_WITH_NOTES.
Set workflow.code_review_block: true to hard-block /specclaw:pr when the review verdict is CHANGES_REQUESTED. Defaults to false so existing projects are unaffected.
Evidence-Grounded Agent Payloads
Agent prompts follow published prompt-engineering guidance from Anthropic and OpenAI: coding agents are instructed to investigate before answering (never speculate about unopened code) and to write general-purpose solutions (tests verify correctness, they don't define it); verify and review agents must quote the exact spec/code/output lines a verdict rests on โ unquotable claims are dropped; payloads put longform context first and the task last; loop fix agents carry reversibility rules (no force-push, no --no-verify, no destructive shortcuts to green a gate).
Workflow
- Propose โ draft a proposal, refine it with the user.
- Plan โ once approved, generate spec + design + tasks.
- Build โ execute the tasks, committing each one. Failures log to
errors.md; insights log tolearnings.md. - Verify โ run the configured test/lint/build commands, evaluate against acceptance criteria, write
verify-report.md. - PR โ open a GitHub PR (or
/specclaw:pr-azdofor Azure DevOps) using the spec and verify report as the description. - Archive โ after merge, move the change to
.specclaw/changes/archive/.
Plugin Architecture
This repo is the chan4lk plugin marketplace. The specclaw plugin lives at plugins/specclaw/ and is the marketplace's first plugin:
specclaw/ โ chan4lk marketplace root
โโโ .claude-plugin/marketplace.json
โโโ plugins/
โโโ specclaw/
โโโ .claude-plugin/plugin.json
โโโ skills/<verb>/SKILL.md โ 15 namespaced skills
โโโ bin/specclaw-* โ lifecycle scripts on $PATH
โโโ templates/ โ proposal.md, spec.md, etc.
โโโ references/ โ agent prompts, build engine docs
Scripts resolve plugin-internal resources via $CLAUDE_PLUGIN_ROOT and operate on the host repo's current working directory for .specclaw/ state โ nothing is written inside the plugin install.
License
MIT
Contributing
PRs welcome. See CONTRIBUTING.md.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi