Agent skill

Wf Spec Drift

by changkun in changkun/wallfacer

Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an…

MITAuto-check passedDevelopment

Install Wf Spec Drift

skills CLI
$ npx skills add changkun/wallfacer --skill wf-spec-drift -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install changkun/wallfacer wf-spec-drift --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/changkun/wallfacer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/wf-spec-drift .claude/skills/wf-spec-drift && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wf-spec-drift
GitHub stars
112
Token cost
~2.4k tokens
SKILL.md length
1,183 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an…

  • Works in 9 steps: Parse arguments → Load the spec → Load the implementation → …
  • Development work in your project
  • SKILL.md covers Step 0: Parse arguments, Step 1: Load the spec, Step 2: Load the implementation and Step 3: Classify each spec item, plus 6 more sections
  • Calls git

What it does

Wf Spec Drift is an agent skill from changkun/wallfacer. Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an Outcome section appended. Writes to the spec and may mark it stale. Use after an implementation lands and the spec should carry the verdict.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Chat, specs, tasks, and code. An autonomous engineering platform. Full autonomy when you trust it. Full control when you don't. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/wf-spec-drift”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Parse arguments
  2. Load the spec
  3. Load the implementation
  4. Classify each spec item
  5. Identify unspecified work
  6. Assess overall drift
  7. Write the Outcome section
  8. Run tests
  9. Summary

What it can do on your machine

Read from SKILL.md and the folder at commit 5b3cea1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wf Spec Drift loads about 2.4k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 1,183 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from changkun/wallfacer at commit 5b3cea1, republished under its MIT licence (© changkun). 1,183 words, ~2,395 tokens.

Download SKILL.mdSave it as .claude/skills/wf-spec-drift/SKILL.md (or your agent's skills folder).
name
wf-spec-drift
description
Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an Outcome section appended. Writes to the spec and may mark it stale. Use after an implementation lands and the spec should carry the verdict.
argument-hint
<spec-file.md> [commit-range]

Spec-Implementation Drift

Compare what a dispatched task actually built against what the spec asked for. This is the non-deterministic layer 2 of the task completion feedback loop — it goes beyond the mechanical status flip (layer 1) to assess whether the implementation truly satisfies the spec's intent.

Step 0: Parse arguments

$ARGUMENTS has the form: <spec-file.md> [commit-range]

  • The first token is the spec file path.
  • The optional second token is a git commit range (e.g., abc123..HEAD).

Step 1: Load the spec

  1. Read the spec file in full. Parse YAML frontmatter — extract title, status, depends_on, affects, effort, dispatched_task_id.
  2. Verify dispatched_task_id is non-null. If null, the spec was not dispatched. It may instead have been implemented directly in-session (no task UUID, but real commits on the affects files). In that case:
    • To finalize it (Outcome + status + README), use /wf-spec-wrapup, which is lifecycle-aware and reconstructs the Outcome from the git history of the affects files. That is the canonical Outcome writer for the direct path.
    • To only review the implementation against the spec (no Outcome write), use /wf-spec-review-impl, which works without a dispatch link.
    • You may still run this skill's divergence analysis on a direct-implement spec if the user passes an explicit [commit-range] (Step 2 then uses it instead of the task UUID) — but do not also write ## Outcome here if wrap-up already owns it (see Step 6).
  3. Extract the acceptance criteria from the spec body:
    • Design specs: items from Options (chosen option), Components, Architecture
    • Task specs: items from "What to do", "Goal", "Tests"
    • Any numbered or bulleted requirements
  4. If the spec is non-leaf, read child specs recursively and aggregate their criteria.

Step 2: Load the implementation

  1. If a commit range was provided, use it directly.
  2. Otherwise, infer the range: find commits associated with the dispatched task. Look for the task UUID in commit messages, or use the task's worktree diff via GET /api/tasks/{id}/diff where a task board exposes one; otherwise from git history over the spec's affects paths.
  3. Get the diff: git diff <range> --stat for file list, git diff <range> for full changes.
  4. Get commit messages: git log <range> --oneline.

Use Agent subagents (Explore type) to parallelize diff analysis across independent packages if the change spans many files.

Step 3: Classify each spec item

For every acceptance criterion or deliverable in the spec:

  • Satisfied — the diff contains clear evidence of implementation. The code matches what the spec described (types, functions, behavior).
  • Diverged — the item was addressed but the implementation differs from what the spec specified. Note what the spec said vs what was built and why the divergence may have occurred (common reasons: runtime constraints, API changes, simpler approach found).
  • Not implemented — no evidence in the diff. The item was skipped or deferred.
  • Superseded — the item was replaced by a different approach that achieves the same goal. Note the replacement.

For each classification, cite specific files, functions, and diff hunks as evidence.

Step 4: Identify unspecified work

Scan the diff for changes not traceable to any spec item:

  • New files, types, or functions not mentioned in the spec
  • Refactoring of existing code beyond what the spec required
  • Test additions beyond what the spec's "Tests" section listed

Classify each as:

  • Necessary scaffolding — required to make the spec work (e.g., imports, helper types, error handling)
  • Improvement — reasonable enhancement discovered during implementation
  • Scope creep — work that belongs in a different spec or wasn't requested

Step 5: Assess overall drift

Compute a drift summary:

  • Satisfaction rate: N of M spec items satisfied (percentage)
  • Divergence count: how many items were implemented differently
  • Unimplemented count: how many items were skipped
  • Unspecified count: how many changes weren't in the spec

Based on these numbers, determine the drift level:

  • Minimal (>90% satisfied, ≤1 divergence) — spec is accurately complete
  • Moderate (70-90% satisfied, or 2-3 divergences) — spec is mostly complete but the Outcome section should document the deviations
  • Significant (<70% satisfied, or major divergences) — the spec should transition to stale rather than complete, as it no longer accurately describes what was built
Show full SKILL.md (515 more words)Show less

Step 6: Write the Outcome section

## Outcome is the single canonical completion section, shared with /wf-spec-wrapup.

If you are running as wrap-up's analysis engine (wrap-up Step 2a): stop here — do not write or update the Outcome, and do not touch frontmatter/status. Return the classified findings (Satisfied / Diverged / Not implemented / Superseded items, unspecified work, drift level, satisfaction rate) to wrap-up, which composes the one Outcome and sets status from the drift. Steps 7–8 below (tests, report) are wrap-up's job in that mode.

If you are running standalone, you own the Outcome — but still don't blindly append a second one. Check whether the spec already has an ## Outcome:

  • None yet — write the divergence-flavored Outcome below.
  • Already present (e.g. wrap-up finalized a direct-implement spec, or a prior diff ran) — do not duplicate it. Merge your divergence findings into the existing section (add/refresh the Design Evolution / Not Implemented / Unspecified Work subsections) and leave its Summary/What-Shipped intact. The divergence analysis augments the finalizer's Outcome; it does not replace it.

When writing a fresh Outcome standalone, append it before any "Future Work" or "Open Questions" sections:

markdown
## Outcome

**Drift**: Minimal | Moderate | Significant
**Satisfaction**: N/M items (X%)

### What Shipped
- <bullet list of key deliverables with file paths>

### Design Evolution
- **<spec item>**: spec said X, implementation does Y. Reason: <why>

### Not Implemented
- **<spec item>**: <reason — deferred, descoped, superseded by Z>

### Unspecified Work
- **<file/function>**: <classification and brief description>

Update the spec's status — honoring the lifecycle gate (validated → complete is illegal; complete is reached only through testing) and the hybrid rule (prefer a transition API where the repo has one, since it validates the edge; otherwise a legal-edge frontmatter edit). A dispatched task reaching done means the server already moved the spec along validated → testing → complete/stale, so usually you are only recording the verdict, not setting the status:

  • Minimal: the server's complete stands; leave status as is.
  • Moderate: leave complete, but the Outcome documents the divergences; suggest /wf-spec-refine to align the spec text.
  • Significant: your analysis overrides the server's optimistic complete — set status: stale (complete → stale is legal). Recommend /wf-spec-refine, then /wf-spec-dispatch again for the remaining work.
  • If the spec is unexpectedly still validated (no server hook ran) or testing (verdict pending), do not jump to complete: hand off to /wf-spec-wrapup, which walks the testing gate properly. Never write validated → complete.

Set updated to today's date whenever you change the status.

Step 7: Run tests

If the spec has a "Tests" or "Testing Strategy" section:

  1. Discover and run the affected repository's documented test command.
  2. Cross-reference test results against the spec's test requirements.
  3. Note any spec-required tests that are missing or failing.

Include test results in the Outcome section.

Step 8: Summary

Report to the user:

## Spec Diff: <spec title>

Task: <task UUID>
Commits: N commits, M files changed
Drift: Minimal | Moderate | Significant
Satisfaction: N/M items (X%)

### Satisfied
- <item> — in <file>

### Diverged
- <item> — spec: X, impl: Y

### Not Implemented
- <item>

### Unspecified
- <file>: <classification>

### Recommendation
- <what to do next — nothing, update spec, or mark stale>

Guidelines

  • This skill bridges the gap between "task done" and "spec accurately complete." The server-side hook (layer 1) marks the spec complete immediately. This skill (layer 2) verifies that claim and corrects it if needed.
  • Be factual, not judgmental. Divergences aren't failures — implementations often improve on specs. Document what happened and why.
  • Preserve the spec's existing content. The Outcome section is additive.
  • If you can't determine whether an item was satisfied (ambiguous spec language, unclear diff), classify it as "Cannot determine" and flag it for human review.
  • This skill is most valuable for design specs where the implementation had latitude to interpret. For task specs with precise "What to do" steps, the assessment is usually straightforward.

© changkun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/wf-spec-drift of changkun/wallfacer.

Open the folder on GitHubat commit 5b3cea1

Compare with similar skills

Wf Spec Drift next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wf Spec Drift compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wf Spec Drift this skillchangkun/wallfacer112—~2.4kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from changkun/wallfacer

All 14 skills in this repo
  • Wf Spec Breakdown

    changkun/wallfacer

    Split one spec into children — sub-design specs when questions are still open, or implementation-ready leaves when the plan is clear.

    112 GitHub stars~2.6k tokensUpdated 5 days ago
    Auto-check passed
  • Wf Spec Create

    changkun/wallfacer

    Write a new spec from scratch when none exists for the idea yet.

    112 GitHub stars~2.3k tokensUpdated 5 days ago
    Auto-check passed
  • Wf Spec Dispatch

    changkun/wallfacer

    Mark a validated spec ready to build and resolve its dependency wiring; where a task board with a transition API is present, create the linked task atomically.

    112 GitHub stars~1.6k tokensUpdated 5 days ago
    Auto-check passed
  • Wf Spec Drive

    changkun/wallfacer

    Run the whole lifecycle for one spec, calling the other skills in order and advancing one legal transition at a time until it reaches a target state (default complete), stopping to ask at…

    112 GitHub stars~2.3k tokensUpdated 5 days ago
    Auto-check passed
  • Wf Spec Report

    changkun/wallfacer

    Survey the whole spec tree: what is complete, in progress, blocked, and actionable next.

    112 GitHub stars~1.6k tokensUpdated 5 days ago
    Auto-check passed
  • Wf Spec Review Impl

    changkun/wallfacer

    Read-only verdict on whether an implementation meets its spec: each acceptance criterion classified, unintended changes flagged, test coverage checked.

    112 GitHub stars~1.1k tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Wf Spec Drift

What does Wf Spec Drift do?

Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an…. Wf Spec Drift is an agent skill from changkun/wallfacer. Classify how far what shipped diverged from what was specced, and record it on the spec: every item marked satisfied, diverged, not implemented, or superseded, unspecified work called out, and an Outcome section appended.

When should I use Wf Spec Drift?

Wf Spec Drift fits situations like: development work in your project.

How do I install Wf Spec Drift in Claude Code?

Run `npx skills add changkun/wallfacer --skill wf-spec-drift -a claude-code`. Or copy the skill folder (.claude/skills/wf-spec-drift in changkun/wallfacer) into .claude/skills/wf-spec-drift in your project. Claude Code loads it when a task matches its description.

How do I install Wf Spec Drift in Codex?

Run `npx skills add changkun/wallfacer --skill wf-spec-drift -a codex`. Or copy the skill folder (.claude/skills/wf-spec-drift in changkun/wallfacer) into .agents/skills/wf-spec-drift in your project. Codex loads it when a task matches its description.

Can I use Wf Spec Drift in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add changkun/wallfacer --skill wf-spec-drift -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wf-spec-drift, .gemini/skills/wf-spec-drift, .github/skills/wf-spec-drift and .opencode/skills/wf-spec-drift in your project.

What does Wf Spec Drift need to run?

Going by SKILL.md and its folder, Wf Spec Drift needs the command-line tools its instructions call (git).

Does Wf Spec Drift access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Wf Spec Drift safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Wf Spec Drift use?

Wf Spec Drift is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wf Spec Drift use?

About 2.4k tokens (SKILL.md is roughly 9.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wf Spec Drift?

Skills that share tags, products or a category with Wf Spec Drift: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wf Spec Drift?

changkun (a GitHub user) maintains it in changkun/wallfacer, which has 112 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 4, 2026.

Source: changkun/wallfacer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.