document-existing

document-existing is a skill for Claude Code from nurettincoban/ai-prd-workflow. It costs 44 tokens per session (1,459 once invoked), scanned A, original, MIT.

A codebase-documentation tool that describes an existing project as PRD.md, FEATURES.md, and RULES.md. It reads the code, configuration, dependencies, README, and tests to document what the software does today.

In plain words
What is it for?
Use it when joining an existing project or starting an RFC-based workflow around one. It maps entry points, modules, data stores, services, build commands, and test commands.
Why use it?
It gives future work a factual starting point instead of relying on memory or outdated plans. It also separates behavior visible in the code from questions the code cannot answer, such as user goals or future plans.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the prd-workflow plugin — 11 skills shipped together

Good fit Use it when joining an existing project or starting an RFC-based workflow around one. It maps entry points, modules, data stores, services, build commands, and test commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nurettincoban/ai-prd-workflow/document-existing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nurettincoban/ai-prd-workflow --skill document-existing
Clone the repo
git clone --depth 1 https://github.com/nurettincoban/ai-prd-workflow

Made for: Claude Code.

Or install prd-workflow, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document-existing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nurettincoban/ai-prd-workflow/document-existing/github.svg)](https://agentmods.dev/skills/nurettincoban/ai-prd-workflow/document-existing)
Your own site
<a href="https://agentmods.dev/skills/nurettincoban/ai-prd-workflow/document-existing"><img src="https://agentmods.dev/badge/skills/nurettincoban/ai-prd-workflow/document-existing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document-existing

Your own site · 80×15
<a href="https://agentmods.dev/skills/nurettincoban/ai-prd-workflow/document-existing"><img src="https://agentmods.dev/badge/skills/nurettincoban/ai-prd-workflow/document-existing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01459
Opus 5.5 $0.00018 $0.00584
Sonnet 5.5 $0.00009 $0.00292
Haiku 4.5 $0.00004 $0.00146

Measured 23d ago against content hash 1e751bee0265, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

document-existing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/trace-check.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/document-existing/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior engineer and product manager onboarding an existing codebase into an RFC-driven workflow. The code already exists. Your job is to document what it does today -- not what it should do -- so that new work is planned against reality instead of against memory.

Work in the current project directory. If PRD.md, FEATURES.md or RULES.md already exist, stop and ask whether to update them or to write .draft.md files beside them. Never overwrite them silently.

STEP 1: READ THE CODE

  • Map the codebase: entry points, modules, data stores, external services, configuration, and the build and test commands. Read the README, the dependency manifests, and the tests -- tests are the most reliable statement of intended behavior a codebase has.
  • Run the build and the test suite if you can, and record the actual result. If you cannot execute commands here, say so.
  • Keep a list of what the code cannot tell you: who uses it, why it exists, what is planned next, and which behaviors are deliberate rather than accidental.

STEP 2: ASK WHAT THE CODE CANNOT TELL YOU

Ask me one batch of 3-5 questions from that list -- the users and their problem, what changes next, what is deliberately out of scope, which odd behaviors are bugs. Wait for the answers before writing anything.

CLASSIFY THE PRODUCT TYPE

Classify the product as one of: web app · mobile app · library/SDK · CLI · service/API · data pipeline · game. A product that combines types -- a web app with a public API -- takes the checks of each.

Then apply only the checks that fit. What each type needs probed, and what usually does not apply:

Type Probe Usually skip
web app auth and sessions, authorization per resource, data model and migrations, accessibility, responsive layout, browser support, page-load budget, SEO for public pages binary size, offline sync
mobile app offline behavior and sync conflicts, OS permissions, app-store review rules, OS-version and device support, battery and data use, push notifications, update strategy SEO, browser support
library/SDK public API surface and consistency, semver and deprecation policy, peer-dependency ranges, bundle size and tree-shaking, type quality, the public/internal boundary, mutation of caller-owned data infrastructure, scalability, regulatory, business model, accessibility, responsive design, state management, auth
CLI command and flag design, exit codes, stdout vs stderr, piping and scripting, config and environment precedence, cross-platform paths and shells, install and upgrade UI design, accessibility, SEO, sessions
service/API API contracts and versioning, authentication and authorization, rate limiting and abuse, idempotency and retries, observability, data retention and privacy, SLOs and scaling UI, responsive design, accessibility
data pipeline schemas and schema evolution, data-quality checks, idempotent re-runs and backfills, late or duplicate data, lineage, PII handling, cost and scheduling UI, sessions, responsive design
game core loop, frame budget and target hardware, input devices, save/load and save versioning, progression and difficulty, platform certification SEO, CRUD business logic, responsive design

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago First seen · 61 lines · 44 tokens per session scan A 1e751bee0265

Subscribe to this mod's changes

document-existing is a skill published in the GitHub repository nurettincoban/ai-prd-workflow (305 stars, last pushed 17d ago), licensed MIT. It adds 44 tokens to every session and 1,459 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.