Onboard a new project into projects/<KEY>/ — fills PROJECT.md from the template, seeds learnings.md + bug-report template, adds it to memory/INDEX.md. Use for "/onboard-project", "Projekt einrichten", "neues Projekt onboarden", or when a ticket's prefix has no PROJECT.md. Not for adding a product — /onboard-product.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Onboard Project?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sn4kygit-onboard-project)
---
name: onboard-project
description: Onboard a new project into projects/<KEY>/ — fills PROJECT.md from the template, seeds learnings.md + bug-report template, adds it to memory/INDEX.md. Use for "/onboard-project", "Projekt einrichten", "neues Projekt onboarden", or when a ticket's prefix has no PROJECT.md. Not for adding a product — /onboard-product.
license: Apache-2.0
---
# /onboard-project — teach the agent a new project
Expect this to take real back-and-forth with the user (~30–60 min for a first
project) — every field matters for later autonomous testing, and guessing here is
exactly what the router (`CLAUDE.md` in Claude Code, `.opencode/ROUTER.md` in
opencode) forbids ("never guess a project's process").
## Steps
1. Ask for the JIRA project key (must match the directory name you'll create).
2. Copy `projects/_template/` to `projects/<KEY>/` (including `templates/`, but
**not** `products/` — that scaffold stays put until `/onboard-product` needs it).
**In plugin mode the scaffold is not in this repo**: the session start bootstrap
creates `projects/` empty on purpose, so copy from `projects/_template/`
(plugin mode: `$CLAUDE_PLUGIN_ROOT/projects/_template/`) and write only into the
consumer's repo. Same for the two reads below — the reference project lives at
`projects/EXAMPLE/` (plugin mode: `$CLAUDE_PLUGIN_ROOT/projects/EXAMPLE/`).
Without this branch step 2 copies from a
path that does not exist and onboarding stops at its first write.
Read `projects/EXAMPLE/PROJECT.md` alongside the template as a filled reference
— it's fictional but shows what a complete answer looks like per field. Ignore
its `products/` tree and its `## Products` section unless the user says this
project covers several products.
3. Walk through every `PROJECT.md` section with the user, section by section, not
as one giant question dump:
- Basics — and **ask for the JIRA deployment early**: `cloud` or `datacenter`.
It decides the MCP backend and auth (Cloud: official remote server + OAuth;
Data Center: community server `sooperset/mcp-atlassian` + PAT via
environment variables, server still named `atlassian`) and the report
content format — all detailed in `docs/rules/testing/jira-confluence.md` →
"Deployments". If Data Center and the consumer's `.mcp.json` still carries
the Cloud default, offer to swap the entry (name unchanged, no secrets in
the file).
Then ask for the **JIRA access mode**: `mcp` (default, everything above
applies) or `browser` — for environments where no API path exists at all
(policy forbids tokens, REST blocked, only a web login). On `browser`:
record the **JIRA base URL** and the **secret keys** holding the JIRA login
in PROJECT.md, skip the MCP-swap offer entirely, and read
`docs/rules/testing/jira-browser.md` — it governs every JIRA interaction
from then on. The `atlassian` MCP entry may be left out of `.mcp.json`
altogether in a browser-only QA home.
- Confluence links, environments (stage URL, version-check method,
who deploys).
- Test users — **vault paths only**, never actual passwords in this
conversation. Then ask once how the secret keys should reach
`.env.playwright-secrets` and record it as **Secrets source**:
`keychain` (macOS — each key is a login-keychain service of the same name;
give the user the one-time command per key:
`security add-generic-password -s <SECRET_KEY> -a qa -w`) or `env-file`
(the user fills the gitignored file by hand — tell them to do it directly
in the file, out of chat). If the setup has a credential MCP server, it may
resolve references — it still never surfaces a value, and browser logins keep
going through `--secrets` masking (`.claude/rules/core/security.md` →
"Credential sources").
- Deploy runbook — use `docs/runbooks/stage-deploy-general.md` as the scaffold
if the user doesn't have one written down yet.
- Pipelines/gate overrides, MR process, test assets location, gotchas. For
readiness, ask for the exact JIRA statuses that permit stage testing, the
merge policy (`when-linked` recommended, `always`, or `not-required`), and the
API/CLI queries for blockers, linked MR/PR state and deployed build. If no
version source exists, explicitly choose `Build verification: unavailable`
and record the residual reporting risk; do not invent an endpoint or an MR
requirement for projects that do not use one.
- **Reporting — fetch, do not ask.** Transition names and the priority scheme are
facts that live in JIRA, and `docs/rules/testing/jira-confluence.md` is explicit
that a guessed transition fails loudly in some workflows and silently no-ops in
others. So: pull the issue type's workflow transitions and the project's
priority names via the Atlassian MCP and let the user pick from the real list,
the same way `onboard-product` fetches the real component list. Only fall back
to asking if the MCP is unavailable — and then mark the fields `TODO:` rather
than writing down what the user thinks the transition is probably called. On
`browser` access the same rule holds: read the workflow buttons off a real
ticket's UI if possible, otherwise `TODO:`.
- **Deploy trigger.** "Trigger the pipeline" is not a command. Ask for the exact
one (`gh workflow run …`, `glab ci run …`, a curl, or "manual — ask X") and
record it; `/deploy-to-stage` preflights it and reports BLOCKED when it is
missing.
- **Test assets — framework first.** Ask which framework the suite uses
(`playwright` or `webdriverio`) before asking where it lives;
`test-automator` reads the framework field to pick its conventions. A suite
that doesn't exist yet is "none yet" — do not guess a framework for a
hypothetical future suite.
- **Execution mode.** One question with a recommended default: `hybrid`
(recon → spec via CLI → short live verification pass). Offer `mcp-only`
for brand-new projects without a suite or heavily visual products, and
`cli-first` for mature suites in pipeline operation. Explain in one
sentence what each costs; the four sub-fields (`Verification pass`,
`Red check required`, `Escalate at risk`, `Plan approval`) take the
template defaults unless the user objects — do not interview them
individually. Background: `docs/pipeline/00-overview.md`.
- **Evidence retention.** Optional, with blueprint defaults (30 / 365 / 7
days). One sentence: the agent plans a cleanup and notifies, a human runs
the prune — `/evidence-retention`. Take the template defaults unless the
team wants different periods; do not interview the sub-fields individually.
Background: `docs/artifact-strategy.md` → "Retention".
- **Stage coordination.** Optional, default SOLO (no leases). One question:
"Is this stage shared with a team or parallel sessions?" No → omit the
section. Yes → enable `Shared stage: yes` with namespacing + exclusive-op
leases; `Write lease` stays `off` unless the team explicitly wants full
serialization. Background: `docs/rules/core/stage-coordination.md`.
4. Leave any field the user can't answer yet as `TODO:` — never fill a guess.
Flag TODOs clearly at the end so they get resolved before the first real test.
5. Seed `projects/<KEY>/learnings.md` from the template (empty, ready for
`retro-learn` to populate), and `projects/<KEY>/flow-map.md` from its
template (empty area skeleton — `retest-bug` scopes regression sweeps from
it once `retro-learn` has promoted the first flows; absent map = risk-based
fallback, so an empty skeleton is fine). Then **replace the placeholder**
`projects/<KEY>/templates/bug-report.md` with the base template matching the
report format chosen above — `.claude/skills/bug-report/templates/jira-cloud.md`
or `plain-text.md` (always the latter on `browser` access — the DC editor takes
rich text, no ADF needed; plugin mode: the same paths under
`$CLAUDE_PLUGIN_ROOT/`) — and adjust
section names, order and extra fields to the
project's conventions. This is not optional polish: `bug-reporter` reads that
file as the template, so a project that keeps the placeholder stalls on its
first FAIL. `projects/EXAMPLE/templates/bug-report.md` shows a finished one.
6. Add one line for the new project to `memory/INDEX.md` under "Projects" —
this is what keeps lookups fast later.
7. **Stamp the blueprint version** into `PROJECT.md` → Basics: read `version`
from the installed plugin manifest (`.claude-plugin/plugin.json` via the
support link; plugin mode:
`$CLAUDE_PLUGIN_ROOT/.claude-plugin/plugin.json`) and
write it as `Blueprint version: <version>`. `/whats-new` and `/re-board`
key off this stamp later — never leave it `TODO:`.
8. **Resolve secrets if the source is keychain**: run the blueprint's
`resolve-secrets.sh` once
(`bash $CLAUDE_PLUGIN_ROOT/.claude/hooks/resolve-secrets.sh` (plugin mode) /
`bash .claude/hooks/resolve-secrets.sh` (opencode/shared/integrate via
symlink)). It prints only key
names. Offer the two assisted storage paths before handing over the manual
command: `--import` migrates values the user already hand-filled into
`.env.playwright-secrets` into the keychain (declared keys only, values
never surface); `--capture` asks the user for each missing key through a
native macOS hidden-answer dialog — they type into a GUI box, never into
the chat. The manual one-time command
(`security add-generic-password -s <SECRET_KEY> -a qa -w`) remains the
fallback for headless setups. On `env-file` remind the user once to fill
`.env.playwright-secrets` directly.
9. **Bridge file for vendored skills — one per project, never shared**: write
`.agents/qa-project-context/<KEY>.md` (note: a *directory* keyed by project,
not the single flat `.agents/qa-project-context.md` the vendored skills'
own text describes) as a projection of the `PROJECT.md` you just filled —
product one-liner, tech/test stack, environments, CI/CD, quality goals (gate
overrides), risk areas (from "Gotchas"), team/conventions if known. This lets
the vendored skills under `.claude/skills/` (`risk-based-testing`,
`api-testing`, `accessibility-testing`, `security-testing`, `visual-testing`,
`test-reliability`, `qa-metrics`, `test-case-management`, `release-readiness`,
`bug-reproduction` — see `.claude/skills/THIRD_PARTY_NOTICES.md`) work without
re-asking discovery questions already answered in `PROJECT.md`.
A filled-in model of this file (for the fictional `SHOP` project, kept next to
the example project rather than under `.agents/` for the same collision reason)
is `projects/EXAMPLE/qa-project-context.md` — read it before writing your first.
**Why per-project, not one shared file**: this repo can hold many onboarded
projects (`projects/SHOP/`, `projects/ACME/`, ...). A single shared bridge
file would silently go stale or get overwritten the moment a second project
is onboarded or tested — whoever invokes a vendored skill next would read
the *previous* project's context without any error. Keying by `<KEY>` makes
staleness structurally impossible instead of relying on remembering to
refresh a shared file. See the router → project routing for the rule that
every vendored-skill invocation must point at the current ticket's file.
`PROJECT.md` stays the source of truth for this blueprint's own skills/hooks;
`.agents/qa-project-context/<KEY>.md` is a read-only-by-convention projection
— regenerate it if `PROJECT.md` changes materially rather than editing both
by hand. Give it the frontmatter `generated_from:` (source paths) and
`source_sha:` so staleness is checkable instead of remembered. Once the project
has products, this file serves `project-wide` tickets and each product gets its
own merged projection at `.agents/qa-project-context/<KEY>/<PRODUCT>.md`,
written by `onboard-product`.
10. Confirm with the user: read the completed `PROJECT.md` back as a summary and
ask them to correct anything before considering onboarding done.
11. **Mention products exactly once**, in the closing next-steps — not as a question
during the interview, which would cost every user time to serve a minority:
"Does this JIRA project cover several products with different test methods,
features, or test users? Then run `/onboard-product` — this file stays the shared
base and each product only records what differs." Never create `products/`
yourself; `onboard-product` does that after an explicit confirmation.
## What this skill never does
Invent environment URLs, test users, or pipeline names. Store an actual password
or API token in `PROJECT.md` (references only — see
`.claude/rules/core/security.md`). Treat `projects/_template/` or
`projects/EXAMPLE/` as real projects to test against.