> Discovers the core attributes of the current code repository and its projects — languages, frameworks, tooling, and where things live — and writes a concise reference section directly into the project's AGENTS.md or CLAUDE.md for other skills, agents, and hooks to consume. Use when scanning, analyzing, or detecting the project's technology stack, build tools, or repository structure. Does not create or update project documentation — use project-documentation for writing feature or system docs.
npx skills add https://github.com/testdouble/han --skill project-discovery
git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo unknownfind . -maxdepth 1 -name "AGENTS.md" -type ffind . -maxdepth 1 -name "CLAUDE.md" -type ffind . -maxdepth 1 -name "README*" -type fThis 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.
Pick the single file this discovery is written into, by priority:
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.
If the target is a new CLAUDE.md, there is nothing to deduplicate against.
Launch a han-core:project-scanner agent to determine whether the repository contains one project or many, and what each project's boundaries are. Wait for the agent to complete.
From the agent's results, build a project list. Each entry has a project name (directory name, or repository name for a root-level project), root path, and dependency manifest path.
Launch 3 han-core:project-scanner agents in parallel, each with a different focus area. Include the project list from Step 2 in each agent's prompt so they know which roots to explore. Keep each agent on the core facts an AI agent needs to navigate and run the project — not an exhaustive catalog of every config file.
Agent 1 — Languages and Frameworks: For each project, read the dependency manifest to identify languages and version constraints. Determine the package manager from the lock file type. From dependencies, identify the structural/architectural frameworks that define how the project is built (web, frontend, test, ORM/database). Ignore utility packages. Note runtime version requirements.
Agent 2 — Commands: For each project, find the task runner or build definition and extract the actual commands for installing dependencies, running tests, linting, building, and the dev server. Only record commands that actually exist — no guesses.
Agent 3 — Layout: Map where the important things live: the main source directory or directories, the test location, and the documentation, ADR, and coding-standards directories — do not assume names like "docs". Capture only the handful of directories someone needs to know to find their way around the repo; skip incidental files.
After all 3 agents complete, merge their findings, deduplicate across agents, and organize by project. Separate repository-level items (default branch, docs, ADRs, coding standards, layout) from project-level items (language, frameworks, package manager, commands).
Build a concise ## Project Discovery section using the template at template.md as the structural guide.
Apply two filters before writing anything:
{placeholder} behind, and never invent a command or path that was not discovered.If a discovered fact contradicts what the file already states (for example, the file says make test but no Makefile was discovered), use AskUserQuestion to surface the contradiction and ask which is correct — the existing file or the filesystem discovery. Update the content based on the answer.
Then write the result into the target file:
## Project Discovery section: append the section at the end of the file (or another sensible location).## Project Discovery section: replace that section's body with the new, deduplicated content. Do not leave the old content alongside the new.If, after deduplication, nothing meaningful remains to add, do not write an empty section. Tell the user the target file already covers the project's core attributes, and stop.
Read back the target file's ## Project Discovery section. Confirm: no {placeholder} text remains, every bullet has a real discovered value, and nothing duplicates content stated elsewhere in the file. Spot-check 2-3 discovered paths or directories with Glob to confirm they exist.
Report to the user: the target file written (and whether it was created or updated), the number of projects discovered, and the languages and frameworks found.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take testdouble/project-discovery from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.