han-release
Cut a Han release: update CHANGELOG.md with the changes since the last release, bump and tag every plugin that changed as {plugin-name}--v{version} so a…
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
$ npx -y skills add testdouble/han --skill project-discovery --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/project-discoveryContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: project-discovery
description: >
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.
allowed-tools:
Read, Write, Edit, Glob, Grep, Agent, Bash(git symbolic-ref *), Bash(find *),
Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh")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](../../references/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.
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.
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.
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](./references/template.md) as the structural guide.
Apply two filters before writing anything:
file already says, even in different words.
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:
location). -
Han is a suite of AI skills and agents for solo (or small-team) product engineers.
Cut a Han release: update CHANGELOG.md with the changes since the last release, bump and tag every plugin that changed as {plugin-name}--v{version} so a…
Update Han plugin documentation so every skill, agent, guidance doc, index, and cross-reference is current and accurate. On a non-default branch, scopes the…
Produces a progressive-disclosure overview of unfamiliar code or a pull request's changes with code-overview and publishes the resulting overview to a…
Runs an evidence-based investigation of a bug, failure, or unexpected behavior with investigate and publishes the resulting investigation report to a…
Publishes a local Markdown file to a user-specified Confluence location, creating a new page or updating an existing one through the Atlassian MCP server. Use…
Builds a feature specification from scratch with plan-a-feature and publishes it to a user-specified Confluence location, posting the spec as a parent page and…