coograph-init

coograph-init is a command for Claude Code from paullukic/coograph. It costs 0 tokens per session (842 once invoked), scanned A, original, MIT.

A project setup command that creates a Coograph template and fills it using the project's detected technology and structure. Coograph is a project documentation and code-structure setup system.

In plain words
What is it for?
Asking setup questions, inspecting manifest files and source folders, detecting the tech stack, requesting confirmation, and copying the selected Coograph configuration into a project.
Why use it?
It avoids manually gathering the project's language, framework, testing tools, build commands, and conventions before setting up shared project files.

Command for Claude Code

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 commands/paullukic/coograph/coograph-init
Clone the repo
git clone --depth 1 https://github.com/paullukic/coograph

Made for: Claude Code.

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 coograph-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/paullukic/coograph/coograph-init.svg)](https://agentmods.dev/commands/paullukic/coograph/coograph-init)
Your own site
<a href="https://agentmods.dev/commands/paullukic/coograph/coograph-init"><img src="https://agentmods.dev/badge/commands/paullukic/coograph/coograph-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 842 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.00000 $0.00842
Opus 5 $0.00000 $0.00421
Sonnet 5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

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

Security

Grade A, and why

coograph-init 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 5d 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.

.claude/commands/coograph-init.md · 49 lines

How it starts

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

Initialize a new project with this Coograph template. Interactive setup that auto-detects the tech stack and fills all placeholders.

The full procedure is in .github/skills/coograph-init/SKILL.md. Follow those steps exactly, with these Claude Code-specific substitutions:

SKILL.md tool Claude Code equivalent
vscode_askQuestions Ask the user directly in the conversation
manage_todo_list Use task tracking internally
apply_patch / create_file Use Edit / Write tools
read_file Use Read tool
grep_search Use Grep tool

Steps (summary)

  1. Gather info — Ask the user: target project path, which AI tools to set up (Claude Code / VS Code Copilot / both), sections to skip, project-specific rules, whether to enable code-graph, and whether to add global gitignore entries.

  2. Detect tech stack — Read the target project's manifest files (package.json, pom.xml, go.mod, Cargo.toml, pyproject.toml, tsconfig.json, etc.) and src/ structure. Extract language, framework, ORM, testing, build tool, linter, commands, and project structure. Present findings and ask the user to confirm before proceeding.

  3. Copy template files — Copy only what's relevant to the selected tools:

    • Claude Code: CLAUDE.md, .claude/commands/project/ (all except initialize.md), .claude/hooks/ (all scripts), .claude/settings.json
    • VS Code Copilot: .github/agents/, .github/prompts/, AGENTS.md
    • Always (shared by every tool): .github/copilot-instructions.md, .github/instructions/, .github/skills/, openspec/config.yaml
    • Do NOT copy node_modules/, .omc/, or .claude/settings.local.json
    • Ask before overwriting any existing file (overwrite / skip / section-by-section)
  4. Fill placeholders — Replace all _TBD_ and <!-- FILL: ... --> markers using the detected stack info. Delete sections the user said to skip. Add project-specific rules.

  5. Verify — Grep for remaining _TBD_ or <!-- FILL markers. Ask the user for any still missing. Zero markers = done.

  6. Code-graph setup (if enabled) — See SKILL.md § Step 6 for the full procedure:

    • Copy .github/code-graph/ (exclude node_modules/)
    • Install d3: cd .github/code-graph && npm install
    • Ensure uv is available (install automatically if not)
    • Add .code-graph/ to .gitignore
    • Write MCP config(s) for selected tools
    • Build initial graph: uv run --with-requirements .github/code-graph/requirements.txt .github/code-graph/server.py --build
    • Optionally install git hooks for auto-updates
  7. Register in projects.json — Add the target project to projects.json in the coograph root (create with {"projects": []} if missing). Entry: { "path": "<absolute-path>", "tools": [...], "code_graph": true|false, "registered_at": "<date>" }. Then run ./setup.sh in the coograph root to ensure git hooks are configured for auto-sync on pull.

Read the full file on GitHub · 49 lines

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. 5d ago First seen · 49 lines · 0 tokens per session scan A 2799b3346ecb

Subscribe to this mod's changes

coograph-init is a command published in the GitHub repository paullukic/coograph (17 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 842 tokens. 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.