project-discovery

project-discovery is a skill for Claude Code from testdouble/han. It costs 97 tokens per session (1,802 once invoked), scanned A, original, MIT.

A repository-discovery tool that identifies a project's languages, frameworks, tools, and file locations, then records a short reference in AGENTS.md or CLAUDE.md. These files provide instructions and context to coding agents.

In plain words
What is it for?
Use it when scanning or analysing a code repository, especially before other skills need reliable project context.
Why use it?
It saves other agents from repeatedly figuring out how the repository is organised and what technology it uses.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the han-core plugin — 2 skills, 22 agents shipped together

Good fit Use it when scanning or analysing a code repository, especially before other skills need reliable project context.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add testdouble/han
Claude Code
/plugin install han-core

Made for: Claude Code.

Or install han-core, the plugin that ships this one along with the rest of its 2 skills, 22 agents.

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 project-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/testdouble/han/project-discovery/github.svg)](https://agentmods.dev/skills/testdouble/han/project-discovery)
Your own site
<a href="https://agentmods.dev/skills/testdouble/han/project-discovery"><img src="https://agentmods.dev/badge/skills/testdouble/han/project-discovery/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 project-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/testdouble/han/project-discovery"><img src="https://agentmods.dev/badge/skills/testdouble/han/project-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 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.00097 $0.01802
Opus 5.5 $0.00039 $0.00721
Sonnet 5.5 $0.00019 $0.00360
Haiku 4.5 $0.00010 $0.00180

Measured 2mo ago against content hash 10d5b00f24f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-discovery 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 2mo 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.

han-core/skills/project-discovery/SKILL.md · 133 lines

How it starts

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

Project Context

  • Default branch: !git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo unknown
  • AGENTS.md: !find . -maxdepth 1 -name "AGENTS.md" -type f
  • CLAUDE.md: !find . -maxdepth 1 -name "CLAUDE.md" -type f
  • README: !find . -maxdepth 1 -name "README*" -type f
  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Project Discovery

This skill discovers the project's core attributes and writes them as a concise ## Project Discovery section directly into the project's AGENTS.md or CLAUDE.md — not a separate file. The output is small by design: a few notes on where things live, the languages and frameworks, and the commands to run, so an AI agent working in the repo can find its way around. It is not an exhaustive inventory.

Step 1: Choose and read the target file

Pick the single file this discovery is written into, by priority:

  1. If AGENTS.md exists (the label above is non-empty), the target is AGENTS.md.
  2. Otherwise, if CLAUDE.md exists, the target is CLAUDE.md.
  3. If neither exists, the target is a new CLAUDE.md at the repository root, which you will create in Step 4.

If the target file already exists, read it in full and build the deduplication baseline: a list of everything the file already documents that this skill would otherwise write — directory and folder locations, languages, frameworks, package manager, build/test/lint/dev commands, and the docs, ADR, and coding-standards directories. Note whether the file already has a ## Project Discovery section.

Read the full file on GitHub · 133 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. 2mo ago First seen · 133 lines · 97 tokens per session scan A 10d5b00f24f9

Subscribe to this mod's changes

project-discovery is a skill published in the GitHub repository testdouble/han (362 stars, last pushed 18d ago), licensed MIT. It adds 97 tokens to every session and 1,802 once invoked, about $0.0004 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-09-03.

Related

project-discovery compared with skills from other repositories

project-discovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-discoverytestdouble/hanSkill36218d agoMITA97Claude Code
security-architecture-reviewcbrock84/headcountSkill2.6kyesterdayMITA78Claude Code
auditoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA35Claude Code
boundariesoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA33Claude Code
triageoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA32Claude Code
pr-threads-addressposit-dev/skillsSkill57618d agoMITA48Claude Code
reviewtechygarg/latticeSkill2188d agoMITA95Claude Code