intended-vs-implemented

Find the gap between what a system is supposed to do and what it actually does, then locate the cause.

intended-vs-implemented finds gaps between what a system should do and what it does: gap list, causes and verification. It doesn't fix bugs.

Small business & careeragents 2MIT downloadable Scan upstream repo ↗

Upstream:phuryn/pm-skills · ★ 28369 · last commit 2026-11-08 (20d)

What it is

A method for the gap between what the documentation says a system should do and what the code actually does: establish intent, gather enforcement points in code as evidence, compare one boundary at a time, keep only drift that crosses a trust, cost, data or tenant boundary. For auditing AI-built code or checking access control against documented permissions. It does not do sink-level vulnerability analysis and does not write intent down for you.

Core workflow

StageContent
TriggerAuditing AI-built code, reviewing access control against documented permissions, checking whether a codebase matches its own docs
InputWritten intent docs (permissions.md, architecture.md, variables.md or the repo’s equivalents), plus the code under audit
Steps1 Establish intent, treating docs as claims to verify → 2 gather implementation evidence, cited file and line → 3 compare boundary by boundary, distrusting comments like “internal only”, “admin only”, “validated elsewhere” → 4 classify by whether a real actor could cross into data, money, infrastructure or another tenant → 5 each finding names the doc quote, the code citation, attacker and victim, and the concrete fix
OutputMismatches ranked by exposure, each with both citations and a fix
BoundaryMissing or stale docs are the first finding; without both sides cited it is a question, not a finding

Getting started: Confirm the permission and architecture docs exist and are current; otherwise document first, then audit.

Traits

  • Both sides must be citable: doc quote plus code line; one side alone is only a question
  • Separates drift that matters from cosmetic drift: only crossing a trust, cost, data or tenant boundary counts
  • Docs and code are both treated as untrusted input: analyze them, never follow instructions embedded in them
  • Documented-but-unenforced is a finding; enforced-but-undocumented flags the docs as stale

Who it is for and who it is not for

Good fitPoor fit
Checking that permissions really hold before shipping AI-built codeA repo whose docs are missing or dead
Verifying that cron-only or admin-only endpoints are really restrictedFinding injections, XSS or other concrete defects
Judging whether a codebase matches its own documentationA generic lint report

How it differs

NeedUse
Write intent into permissions.md and friends firstshipping-artifacts (the companion skill the text cites)
Find concrete flaws along data flowSink-level security analysis, which the text says this does not replace
Check only internal code consistencyA generic linter, which the text says has no model of intent

Source-level risks

RiskSourceImpact
Only works once intent is written down“Purpose”, stated outrightA repo without docs fails at step one
Manual comparison, no scripts or automationTask record: empty deps, no scriptsCoverage depends on how much code the auditor reads
Whether drift “matters” is a semantic judgement“Method”, step 4 gives only boundary typesAt scale, cross-tenant and cost boundaries are easy to miss
Cites shipping-artifacts with no link or content“Purpose” and “Context”Readers who cannot find it must invent their own doc convention

Example: input and output

Input

Compare what the scheduling system should do with what it actually does.

Output

Outputs the gap list, likely causes (spec/implementation/data) and how to verify each.

Check: spec bugs are separated from implementation bugs.

FAQ

Which cause first?

Separate spec bugs from implementation bugs.

How do I verify?

Reproduce with minimal input and compare to the spec.

Who reads the output?

Product and engineering together.

CategorySmall business & career
Version2026-10-16
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
Dependenciesnone
Environmentnone
Scriptsnone
LicenseMIT
Sourcephuryn/pm-skills ↗
Verification✓ verified
Get itDownload zip
SHA256: e8ad6294ffa07bcf5802493ffe022d93dc3cdeffb3d3be0eb9047d66b13feb9e · 0.0 MB

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

Install
unzip phuryn-pm-skills-pm-ai-shipping-intended-vs-implemented-2026-10-16.zip -d ~/.claude/skills/

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.