agentleFS
vmobifystudiovmobifystudio/app-dev-team/skills/intent-trace/SKILL.md

intent-trace

Skill4 starsChanged 4 months agoMITView on GitHub

Use whenever an artifact derives from another one — writing the PRD from the founder brief, criteria from a requirement, tickets from criteria, tests from criteria, analytics from a feature, or a release from all of it. Defines the founder-intent record, the traceability IDs every node carries, the precedence order that resolves a conflict, and the three-state vocabulary that stops an artifact being silently "fine". Triggered before scope-lock, at every hand-off, and by anything that runs scripts/trace.mjs.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every conflict produces a report naming both sides and the rule that resolved it (conflict_resolved), never a silent choice.

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Intent trace

This team writes the PRD, derives acceptance criteria from its own PRD, implements against its own spec, and tests against its own criteria. It can prove conformity to its interpretation and nothing else. If the interpretation drifted, everything downstream is consistently, verifiably, greenly wrong.

Nothing in here fixes that by being read. It fixes it by making the derivation nameable: every node says where it came from and who checks it, and two scripts fail when the chain does not hold.

1. The founder record — docs/00-founder-intent/

The original brief, transcripts, examples, competitor references and constraints exactly as received. Derived documents evolve; this one does not.

docs/00-founder-intent/
  README.md            what this directory is, copied from the plugin
  brief.md             the founder's words, verbatim, dated
  transcript-<date>.md a conversation, pasted whole
  example-<name>.<ext> a screenshot, a competitor link, a spreadsheet they sent
  constraints.md       budget, deadline, platform, legal, "never do X"
  decisions.md         append-only founder decisions (see §5)
  MANIFEST.sha256      the tamper record — written by scripts/founder-intent.mjs

Rules:

  • Append-only. Correcting the founder's words is not editing, it is losing the only external oracle the team has. A changed mind is a new dated entry in decisions.md, never an edit.
  • Verbatim. Summarised intent is interpreted intent, which is the thing being guarded against.
  • Every material scope decision points here. A goal with no source in this directory is a goal the team invented — trace.mjs reports it as goal_no_founder_source.
  • Thin is a finding, not a pass. A one-line brief cannot support a PRD; product-validator returns INTENT: CANNOT EVALUATE and says what is missing.

The tamper check:

node "${CLAUDE_PLUGIN_ROOT}/scripts/founder-intent.mjs" --write   # record new files (refuses to re-record a changed one)
node "${CLAUDE_PLUGIN_ROOT}/scripts/founder-intent.mjs"           # check: 0 clean · 1 tampered · 2 no record to check

--write is append-only itself: it adds a line for a new file and refuses when a recorded file's hash has changed, so the record cannot be laundered by re-running the writer.

2. The traceability IDs

One convention, extending the existing [F-NNN]. Every node declares itself with its ID as the first token on its line, and names its source and its verifier:

| [F-004] | Offline export | src: brief.md#L22 · ver: product-validator · state: unverified · rev: 2026-07-29 |
- [AC-011] Given no rows, When export runs, Then it shows the empty state — src: F-004 · ver: T-011
[EV-003] export_completed — src: F-004 · ver: data-analyst · state: no-event-data
KindIDDeclared insrc:ver:
GoalG-NNNdocs/00-vision.mda file under docs/00-founder-intent/founder
OutcomeO-NNNdocs/00-vision.mdG-NNNdata-analyst
RequirementF-NNNdocs/10-prd.mdO-NNNproduct-validator
StoryS-NNNdocs/11-backlog.mdF-NNNcpo
CriterionAC-NNNdocs/10-prd.mdF-NNNT-NNN
DesignD-NNNdocs/12-flows.mdF-NNNux-designer
TicketAPP-NNNdocs/31-board.md, Feature columnF-NNNcode-reviewer
Codethe branch and commit on the ticket—its ticketcode-reviewer
TestT-NNNdocs/50-test-plan.mdAC-NNNqa-engineer
EvidenceE-NNNdocs/50-test-plan.mdT-NNNverification-engineer
AnalyticsEV-NNNdocs/52-analytics.mdF-NNNdata-analyst
ReleaseR-NNNdocs/60-releases.mdthe F-NNNs it shipsrelease-manager

Declaration vs reference. The ID is a declaration only when it is the first token on the line or in its table cell. - APP-001 [F-001] Export declares APP-001 and merely references F-001. That is what stops the backlog's echo of a requirement counting as a second definition of it.

Tokens. src: · ver: · state: · rev: YYYY-MM-DD. Comma-separate multiple sources. Terminate a token with | or ·. rev: is the date the node last changed and is what makes stale coverage visible: a requirement whose rev: is later than its tests' is a requirement whose tests were written against a different requirement.

3. The three-state vocabulary, beyond gates

PASS / FAIL / CANNOT EVALUATE already governs gates. The same shape governs artifacts, because the missing third state is exactly how an unexamined artifact reads as a fine one:

KindStatesDefault when state: is absent
Requirement · Criterionsatisfied · violated · unverifiedunverified
Designapproved · revision-required · not-reviewednot-reviewed
Analyticsobserved · incorrect · no-event-datano-event-data

No artifact is silently fine. The absent state is never the good one, and a word outside its column is state_invalid, not a near-enough synonym.

4. Precedence — how a conflict is resolved, out loud

Two documents disagreeing is normal. A team silently picking one is the defect. Declare a contested value as a claim, on one line, in each document that asserts it:

claim: export-format = CSV

trace.mjs groups claims by key and resolves by source precedence, highest first:

  1. latest founder decision — docs/00-founder-intent/
  2. approved decision record — a decision row in docs/team/messages.md
  3. scope-locked PRD — docs/10-prd.md
  4. SRS — docs/20-architecture.md
  5. design — docs/12-flows.md, docs/13-design-tokens.md, docs/14-components.md
  6. impl notes — docs/22-impl-spec-*.md
  7. agent assumption — anywhere else

Every conflict produces a report naming both sides and the rule that resolved it (conflict_resolved), never a silent choice. Two sides at the same rank cannot be resolved by rule, so the tool refuses (conflict_unresolvable) and the disagreement goes to the founder. A resolved conflict is still a finding: the losing document is wrong and someone has to fix it.

5. Conditional founder gates

Scope-lock and ship are the two standing gates. These eight stop the loop as well, whenever they are detected and no founder decision covers them:

TriggerDetected by
pricinga price, term or subscription tier asserted in docs/41-monetization.md or docs/10-prd.md
sensitive-datahealth, biometric, precise-location, contacts, payment-card, government-ID or under-13 collection named in any doc
destructive-migrationa drop/wipe/destructive-migration instruction in any doc
account-deletionaccount-deletion or erase-all-data behaviour in any doc
legal-disclosurea privacy policy, terms, EULA or export-compliance declaration
visual-directionclaim: visual-direction = ... in the design docs
paid-infrastructurea paid plan, billing account or per-month cost in docs/20-architecture.md
waiverany WAIVED: line — waiving a failed or unavailable gate is always a founder decision

A trigger is cleared by an append-only line in docs/00-founder-intent/decisions.md:

2026-07-29 FOUNDER DECISION: pricing — £3.99/month, annual at £29.99. Approved by <founder>.

The gate is silent afterwards. It is not cleared by an agent deciding it is fine.

6. Running it

node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" --project-root .            # all three sections
node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" --only trace|conflicts|gates

Exit 0 clean · 1 findings · 2 cannot evaluate. 2 is never rounded up to a pass, and the board is read through scripts/lib/board.mjs — one parser, because a second reading of the board is how the last four fail-open gates got written.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.