adopt

A setup workflow for adding docflow documentation support to a repository that already contains documentation. It adds missing configuration and helpers while preserving existing documents.

In plain words
What is it for?
Use it to inspect a repository, choose its documentation folder and project name, add the missing docflow files, and produce an adoption review.
Why use it?
It provides a structured way to adopt documentation tooling without moving, deleting, or rewriting the repository’s current docs.

Skill for Claude CodeCodex

Part of the docflow plugin — 9 skills, 3 commands shipped together

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.

agentmods
npx agentmods add skills/medadembha/docflow/adopt
Any agent
npx skills add MedAdemBHA/docflow --skill adopt
Clone the repo
git clone --depth 1 https://github.com/MedAdemBHA/docflow

Made for: Claude Code, Codex.

Or install docflow, the plugin that ships this one along with the rest of its 9 skills, 3 commands.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 225 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.00225
Opus 5 $0.00022 $0.00112
Sonnet 5 $0.00009 $0.00045
Haiku 4.5 $0.00004 $0.00022

Measured 3d ago against content hash 2e5d7d7073cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adopt 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 3d ago.

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/adopt/SKILL.md · 37 lines

What it actually says

adopt

Goal: preserve existing docs, add missing docflow infrastructure.

Steps

  1. Run doctor:

    bash scripts/docflow-doctor.sh --target <REPO ROOT>
    
  2. Choose docs root:

    • Use detected docs root if present.
    • Else use docs.
  3. Choose project name:

    • Prefer README H1.
    • Else repo folder name.
  4. Run adopt:

    bash scripts/docflow-adopt.sh --target <REPO ROOT> --docs-root <DOCS_ROOT> --project "<PROJECT NAME>"
    
  5. Report created/skipped files and point at the adoption review doc.

Rules

  • Never move/delete/rewrite existing docs.
  • Existing root guidance files are preserved.
  • Run /docflow:repair after manual cleanup.
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. 3d ago First seen · 37 lines · 44 tokens per session scan A 2e5d7d7073cc

Subscribe to this mod's changes

adopt is a skill published in the GitHub repository MedAdemBHA/docflow (41 stars, last pushed 18d ago), licensed MIT. It adds 44 tokens to every session and 225 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

project-context

Resume, handoff, and long-running repo work by keeping durable context across threads or agents: task briefs, logs, and reusable reference notes.

perhapsspy/project-legibility · 32 tokens

codex-project-director

Invoke explicitly with $codex-project-director to act as an active, non-implementing control plane that drives multiple Codex tasks or sessions toward one verified project outcome. Use only for a user-designated director or supervisor session, not a single local task, ordinary implementation, one-off review, or status…

perhapsspy/project-legibility · 70 tokens

tighten-docs

Use by default whenever creating, revising, reviewing, or finalizing human-authored documentation whose source meaning is settled, including documentation changed within another task. Apply from first draft through final review to keep one direct current state, clear reader routes and ownership, and remove rejected…

perhapsspy/project-legibility · 96 tokens

codex-token-discipline

Use for Codex work with clear excess-cost risk: broad or unpredictable logs and diffs, browser/UI loops, subagents, repeated compaction, or explicit usage audits. Guides preflight output limits, bounded delegation, evidence reuse, and compact checkpoints. Skip routine edits, direct answers, and ordinary test runs.

perhapsspy/project-legibility · 69 tokens

interactive-state-flow

Use when an interactive flow is laggy, stale, or race-prone because user intent, source state, derived presentation, async IO, scheduling, or background work are mixed. Keep source state prompt, protect the urgent interaction path, and admit async or presentation results only through a freshness-owning boundary.

perhapsspy/project-legibility · 65 tokens

agents-md-editor

Use when creating, editing, or reviewing AGENTS.md, agents.md, CLAUDE.md, Copilot instructions, Cursor rules, or any always-read repository instruction file. Keep persistent agent instructions small, durable, non-duplicative, and action-oriented; classify content that belongs in commands, onboarding, reference docs…

perhapsspy/project-legibility · 85 tokens