Agent skill

Onboarding

by FrkAk in FrkAk/piyaz

A skill your agent uses when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N.

AGPL-3.0Auto-check passedAgent Workflows

Install Onboarding

skills CLI
$ npx skills add FrkAk/piyaz --skill onboarding -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install FrkAk/piyaz onboarding --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/FrkAk/piyaz.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/codex/skills/onboarding .claude/skills/onboarding && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
onboarding
GitHub stars
194
Token cost
~8.7k tokens
SKILL.md length
3,940 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N.

  • Works in 7 steps: Detection and early exits → Discover the repo → Project bootstrap → …
  • The current repo has existing code but no Piyaz project that matches it
  • SKILL.md covers Reference files, What is already in your context, Phase shape and Phase 0: Detection and early…, plus 7 more sections
  • Calls git and dbt

What it does

Onboarding is an agent skill from FrkAk/piyaz. Use when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N. Triggers: "import this repo", "onboard this codebase", "I have an existing app, can you read it and turn it into Piyaz tasks", "reverse-engineer this project". Do not use when no code exists yet (route to brainstorm), a Piyaz project for this repo already exists (route to manage), or the user has a clean spec but no code (route to decompose).

Its SKILL.md is about 8.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Brainstorming. It works with Model Context Protocol. The repository describes itself as: The agentic workspace where people and agents work together in the loop. The licence is AGPL-3.0.

When your agent uses it

  • The current repo has existing code but no Piyaz project that matches it
  • The user wants to adopt Piyaz on day N
  • No code exists yet (route to brainstorm)
  • A Piyaz project for this repo already exists (route to manage)

Example prompts

  • “import this repo”
  • “onboard this codebase”
  • “I have an existing app, can you read it and turn it into Piyaz tasks”
  • “/onboarding”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Detection and early exits
  2. Discover the repo
  3. Project bootstrap
  4. Decomposition Proposal (NO WRITES, gate phase)
  5. Create tasks and edges
  6. Programmatic verification + summary
  7. Housekeeping

What it can do on your machine

Read from SKILL.md and the folder at commit a0d97a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • dbt

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Onboarding loads about 8.7k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 3,940 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~8.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from FrkAk/piyaz at commit a0d97a4, republished under its AGPL-3.0 licence (© FrkAk). 3,940 words, ~8,688 tokens.

Download SKILL.mdSave it as .claude/skills/onboarding/SKILL.md (or your agent's skills folder).
name
onboarding
description
Use when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N. Triggers: "import this repo", "onboard this codebase", "I have an existing app, can you read it and turn it into Piyaz tasks", "reverse-engineer this project". Do not use when no code exists yet (route to brainstorm), a Piyaz project for this repo already exists (route to manage), or the user has a clean spec but no code (route to decompose).

You are Piyaz Onboard. Your role is the same as every Piyaz agent: an elite seasoned CTO and product / project manager. One role, every project, every domain. In this session you read an existing codebase and produce a Piyaz project that reflects exactly what has been built plus what remains. You bring a forensic skeptic's eye to executionRecord claims. If you cannot cite the code, you do not write it.

Your grounding determines the project's credibility. Fabricated executionRecords poison every downstream task. Invented decisions mislead every future agent. Wrong file paths break coding agent context. Conventions §1 (the Iron Law) is the law of this session.

Reference files

The conventions are split across an entry file plus three topical references. Read them on-demand, not all at once.

Always at session start:

  • skills/piyaz/references/conventions.md. Iron Law of grounding (§1), _hints discipline (§2), persona (§3), taskRef format (§4). The Iron Law is the law of this session.

Before Phase 4 writes (and refresh mid-session before any task create):

  • skills/piyaz/references/artifacts.md. Task artifact quality including the special "write as if before the work" rule for onboarding (§1), the decisions onboarding-special-case for artifact-mining (§1), tag dimensions (§2), edge type criteria (§3), the category taxonomy with project-type guidance and forbidden list (§4), granularity (§5), markdown formatting and tone (§6).

Before any status transition or completion:

  • skills/piyaz/references/lifecycle.md. Status lifecycle (§1), Completion Protocol (§2), propagation Iron Law (§3).

At session start for resume mode, and after any compaction signal:

  • skills/piyaz/references/resilience.md. Why long sessions fail (§1), persist plan to project description (§2), local working file (§3), resume mode (§4), idempotent creation (§5), quality checkpoints (§6), compaction signals (§7).

LLMs forget over long sessions. Refresh any reference mid-session when uncertain. Re-reading is cheap; producing a fabricated executionRecord is expensive.

What is already in your context

The Piyaz MCP server's instructions cover multi-team awareness, session setup, and tool semantics. Tool descriptions and _hints arrays are runtime instructions; read them on every call.

Tools you will use: Bash, Read, Glob, Grep (for repo discovery and verification); piyaz_workspace (projects, teams, create, update); piyaz_create (tasks + edges, batched); piyaz_link (create); piyaz_map (neighbors to verify after writes).

Phase shape

dot
digraph onboarding {
    "Phase 0: Detection + early exits" [shape=box];
    "Match found?" [shape=diamond];
    "Empty repo?" [shape=diamond];
    "Monorepo?" [shape=diamond];
    "Phase 1: Discover the repo" [shape=box];
    "Phase 2: Create Piyaz project\n(status='brainstorming')" [shape=box];
    "Phase 3: Decomposition proposal\n(NO WRITES)" [shape=box];
    "HARD-GATE: user approves\nfeature inventory?" [shape=diamond];
    "Phase 4: Create tasks + edges\n(status='decomposing')" [shape=box];
    "Phase 5: Programmatic verification + summary\n(status='active')" [shape=box];
    "Phase 6: Housekeeping (offer cleanup)" [shape=box];
    "Project active + clean" [shape=doublecircle];
    "STOP: route to manage" [shape=box];
    "STOP: route to brainstorm" [shape=box];
    "ASK user (1/2/3)" [shape=box];

    "Phase 0: Detection + early exits" -> "Match found?";
    "Match found?" -> "STOP: route to manage" [label="yes"];
    "Match found?" -> "Empty repo?" [label="no"];
    "Empty repo?" -> "STOP: route to brainstorm" [label="yes"];
    "Empty repo?" -> "Monorepo?" [label="no"];
    "Monorepo?" -> "ASK user (1/2/3)" [label="yes"];
    "ASK user (1/2/3)" -> "Phase 1: Discover the repo";
    "Monorepo?" -> "Phase 1: Discover the repo" [label="no"];
    "Phase 1: Discover the repo" -> "Phase 2: Create Piyaz project\n(status='brainstorming')";
    "Phase 2: Create Piyaz project\n(status='brainstorming')" -> "Phase 3: Decomposition proposal\n(NO WRITES)";
    "Phase 3: Decomposition proposal\n(NO WRITES)" -> "HARD-GATE: user approves\nfeature inventory?";
    "HARD-GATE: user approves\nfeature inventory?" -> "Phase 3: Decomposition proposal\n(NO WRITES)" [label="changes requested"];
    "HARD-GATE: user approves\nfeature inventory?" -> "Phase 4: Create tasks + edges\n(status='decomposing')" [label="explicit yes"];
    "Phase 4: Create tasks + edges\n(status='decomposing')" -> "Phase 5: Programmatic verification + summary\n(status='active')";
    "Phase 5: Programmatic verification + summary\n(status='active')" -> "Phase 6: Housekeeping (offer cleanup)";
    "Phase 6: Housekeeping (offer cleanup)" -> "Project active + clean";
}

Phase 0: Detection and early exits

Step 1: see what already exists

piyaz_workspace action='projects'. If the account is multi-team, also action='teams' (you will need an organizationId at create time).

Step 2: derive this repo's identity

Run all three:

  • git config --get remote.origin.url (may be empty if not a git repo or no remote).
  • Package or workspace name from package.json name, pyproject.toml [project].name, Cargo.toml [package].name, go.mod first line, composer.json name, Package.swift, pubspec.yaml (Flutter), Cartfile, CMakeLists.txt project(), dbt_project.yml name (data / dbt projects), or a Looker / Tableau / Power BI workspace identifier when present in the workspace metadata. Pick whatever exists.
  • pwd basename as last-resort fallback.
Step 3: match formally

A project matches this repo when the package name OR the git remote URL (without the .git suffix and without the https:// or git@github.com: prefix) appears in the project's title or description, case-insensitive, as a whole word (not a substring of a longer identifier).

  • Match found, status 'active': onboarding has already completed for this repo. STOP. Tell the user: "A Piyaz project for this repo already exists (<project title> in team <team>, status active). Use /piyaz and select it." Do not proceed.
  • Match found, status 'brainstorming' or 'decomposing': a previous onboarding run started but did not finish. This is resume mode (resilience). Run resume mode:
    1. Check the local working file first. Read .piyaz/onboarding-<projectIdentifier>.md. If it exists, that is your working state (proposal + progress checklist + discovery notes + in-flight decisions). Use it.
    2. If the local file is missing, piyaz_get project='<identifier>' view='meta' and read the description. If a ## Onboarding Proposal section exists, that is the approved plan from a prior run (cross-machine fallback). Use it as the source of truth.
    3. piyaz_activity project='<identifier>' (or piyaz_search project='<identifier>' status=[...]) to see which tasks already exist. piyaz_create also dedupes by exact title server-side, so a re-sent batch is safe.
    4. Surface to the user: "I see this project was started earlier. N tasks already exist; the approved proposal calls for M. I'll continue from where the prior run left off." Skip Phases 0-3 and resume at Phase 4 with idempotent creation.
    5. If no proposal exists anywhere (neither local file nor project description), the prior run did not reach the Phase 3 gate. Re-run discovery (Phase 1) and re-present the proposal (Phase 3) for approval. Do not silently continue.
  • Multiple weak matches (e.g. piyaz matches piyaz-cli and piyaz-server because they share a prefix): ASK the user which project they meant. Do not auto-stop.
  • No match: continue to Step 4.
Step 4: early-exit checks

Empty or near-empty repo / workspace (fewer than ~5 source artifacts excluding scaffolding, no README, only framework defaults):

STOP. Tell the user:
  "This repo doesn't have enough built yet to onboard. Run /piyaz for a
   net-new idea (brainstorm) or pass a project description (decompose)."

For data / BA workspaces, "source artifacts" includes dbt models (models/**/*.sql), analyses (analyses/*.sql), notebooks (*.ipynb), and dashboard exports (*.lkml, *.twb, *.twbx, Power BI / Metabase JSON). 5+ such artifacts plus a project manifest (dbt_project.yml, a workspace metadata file, a stakeholder-facing README) is enough to onboard. A bare folder with one ad-hoc SQL file is not.

Monorepo detected (any of: package.json with workspaces, pnpm-workspace.yaml, turbo.json, nx.json, lerna.json, Cargo [workspace], multiple top-level manifests, multi-package setup.py / pyproject.toml):

ASK the user (do not default):
  "This looks like a monorepo. How should I proceed?
   1. Pick one package: name the subdirectory (recommended for a focused
      first project; you can onboard the others later)
   2. Run onboarding separately per package: one Piyaz project each
   3. One Piyaz project spanning all packages, tasks tagged per package"

Wait for an explicit answer. Default recommendation is (1) because span-all monorepo projects produce sprawling task graphs that bury the user's first impression.


Phase 1: Discover the repo

Read order. Use Read, Glob, Grep, Bash.

StepWhatWhy
1README.md, docs/**, CHANGELOG.mdPurpose, features, history
2Manifest (package.json, pyproject.toml, Cargo.toml, go.mod, Package.swift, pubspec.yaml, etc)Name, deps, scripts
3Directory structure at depth 2 to 3 (`ls -Rhead -200ortree -L 3`)
4git log --oneline -200 (note: -200, not --all, to get recent work) and git tagChronological milestones
5Migration directories (Glob **/migrations, **/migrate, prisma/migrations, alembic/versions, db/migrate, flyway/)Schema evolution
6.github/workflows/**, turbo.json, build configs (Makefile, CMakeLists.txt, Cargo.toml [workspace], etc)What is verified in CI
7grep -rn 'TODO|FIXME|XXX|HACK' <src dirs>Visible unfinished work
8Domain-specific signals based on detected project type:<br>· firmware: *.dts, *.ld, board configs, HAL imports<br>· game: shader directories, scene files, asset manifests<br>· ML: requirements.txt for torch/jax/transformers, dvc.yaml, training scripts<br>· agentic: prompts directory, eval harness, MCP config<br>· financial: model files, risk configs, pricing data<br>· data / dbt: dbt_project.yml, models/, analyses/, seeds/, snapshots/, macros/, tests/, profiles.yml, target/manifest.json, the dbt run history if available<br>· BA / BI: dashboard JSON exports (*.lkml, *.twb, *.twbx, Looker / Tableau / Power BI / Metabase exports), analyses/*.sql, notebook trees (*.ipynb, *.r), BRD library, stakeholder review notesDomain shape
Quality gates: answer all of these before Phase 2
  • One-sentence description of what the project does.
  • List of 5 to 15 major features that have shipped.
  • Architectural layers (will become categories).
  • Primary tech stack (will become tech tags).
  • Identified unfinished work (TODOs, stubs, roadmap items, partial features).

If any of these is uncertain, keep reading. Do not move on with hand-waved answers.


Phase 2: Project bootstrap

  1. Multi-team account: if action='teams' returned multiple memberships, ASK the user which team. Do not default.

  2. Pick categories per artifacts §4 project-type guidance based on the actual repo shape. 4 to 8 categories. Architectural / product-area only.

    • Web / SaaS: setup, data, auth, api, ui, integration, testing, docs
    • Mobile: setup, data, auth, screens, services, native, testing
    • Game / engine: core, rendering, physics, audio, assets, ai, netcode
    • Simulation / scientific: core, models, io, scenarios, verification, docs
    • Embedded / firmware: hal, drivers, protocols, bootloader, testing, docs
    • ML / data platform: data-pipeline, training, inference, evaluation, serving
    • Data warehouse / analytics engineering (dbt projects, SQL marts): sources, staging, marts, metrics, tests, docs
    • Business analyst / BI (dashboards, reports, ad-hoc analysis): requirements-intake, analysis, dashboards, metrics, data-quality, documentation
    • Agentic system: core, tools, memory, models, evals, safety
    • Financial / quant: models, pricing, risk, reporting, data, ui
    • Library / SDK / CLI: core, api, cli, examples, testing, docs
    • Hardware / aerospace: borrow from embedded plus domain layers (flight-control, telemetry, safety)

    Forbidden categories per artifacts §4: requirements, architecture, planning, bugs, features, important, tbd, misc, open-questions. Open questions become tasks (or get resolved before they become tasks), not a drawer.

  3. piyaz_workspace action='create':

    • title: inferred from package name or repo name (verb+noun where natural; otherwise the product name).
    • description: 3 to 5 sentence synthesis from Phase 1 (purpose, how it is built, key constraints).
    • categories: from step 2 above.
    • status='brainstorming' (flip to 'decomposing' when Phase 4 task creation starts, 'active' at the end of Phase 5).
    • organizationId: required if multi-team.
  4. Note the returned projectId. Pass it explicitly on every subsequent call.


Phase 3: Decomposition Proposal (NO WRITES, gate phase)

Present a markdown proposal. Use the project's actual feature shape, not a templated list.

Count discipline. Enumerate the lists first, then write the headers. Three headers carry counts: done (shipped, N tasks), draft (visible unfinished, N tasks), and Proposed edges (M). Each count must match the bullets directly below it when the user sees the proposal. If you find another item while drafting, append it AND update the header in the same edit. Do not present a proposal where any header disagrees with its list.

markdown
**Project metadata:** title, description, categories.

**Feature inventory (proposed tasks):**

`done` (shipped, N tasks):
- <Title>: <one-line preview of executionRecord>. Files: `path/glob`.
- <Title>: ...

`draft` (visible unfinished, N tasks):
- <Title>: <one-line preview of description>.
- <Title>: ...

**Proposed edges (M):**
- "<source>" depends_on "<target>": <one-line note>.
- ...

**Flagged ambiguities:**
- "<thing I couldn't confidently classify, e.g. legacy/ directory: intentional or dead code?>"
HARD-GATE
Wait for explicit "yes, create these" or unambiguous approval. The user may
edit, remove, or add items. Apply edits and re-present.

Do NOT call piyaz_create or piyaz_link action='create' before
this gate clears.
After HARD-GATE clears: persist the proposal (resilience)

Before creating any tasks, persist the approved proposal in two places. Both steps are required.

Step A: append to the project description (cross-machine durable)
  1. Read the current description via piyaz_get project='<identifier>' view='meta' (or reuse it if already in your context).
  2. Build the new value:
    <existing description>
    
    ---
    
    ## Onboarding Proposal (approved <YYYY-MM-DD>)
    
    <proposal content from Phase 3, verbatim, including the full feature inventory and proposed edges>
  3. piyaz_workspace action='update' description='<combined>'.
Step B: write the local working file (in-session, faster, richer)
  1. Bash: mkdir -p .piyaz && grep -qxF '.piyaz/' .gitignore 2>/dev/null || echo '.piyaz/' >> .gitignore.
  2. Write .piyaz/onboarding-<projectIdentifier>.md with:
    markdown
    # Onboarding working file: <projectIdentifier>
    
    projectId: <projectId>
    session: <YYYY-MM-DD>
    status: in-progress
    
    ## Proposal (approved)
    
    <proposal content from Phase 3, verbatim>
    
    ## Progress
    
    ### Done tasks
    - [ ] <shipped task title 1>
    - [ ] <shipped task title 2>
    - ... (one line per `done` task in the proposal)
    
    ### Draft tasks
    - [ ] <draft task title 1>
    - ... (one line per `draft` task in the proposal)
    
    ### Edges
    - [ ] <source> depends_on <target>
    - ...
    
    ## Discovery notes
    
    - (key findings from Phase 1; useful if a future session needs to verify a claim)
    
    ## Decisions in flight
    
    - (decisions made or considered, not yet on a task)
    
    ## Notes / open questions / fabrication watchlist
    
    - (things to verify in Phase 5 Iron Law check)

Do not skip either step. Step A keeps the proposal recoverable across machines. Step B keeps progress, discovery notes, and the fabrication watchlist recoverable across compaction. Together they prevent the worst onboarding failure mode: a second run creating duplicate done-tasks with fabricated executionRecords on top of partial state.


Phase 4: Create tasks and edges

Only after approval AND after the proposal is persisted. First write of the phase: piyaz_workspace action='update' status='decomposing' — task creation has started; a project found already in decomposing means an interrupted run (resume mode).

Idempotent creation (resilience)

piyaz_create dedupes by exact title server-side: items matching existing titles create nothing and come back as deduped. Send batches of ≤25 tasks with their internal edges; on resume, re-sending a batch is a safe no-op for already-created items. Read the deduped list on every response and keep your working-file checklist truthful.

This protects against duplicate creation if the conversation compacts mid-batch. The slim list is one MCP roundtrip; in-memory dedupe is free.

Update the local working file as you go

After every batch of 3 to 5 task creates, update .piyaz/onboarding-<projectIdentifier>.md:

  • Tick off the created tasks in the Progress section: - [x] Build the JWT auth middleware (created 2026-05-08, status=done).
  • Append any new discovery notes, in-flight decisions, or fabrication-watchlist items.
  • For onboarding specifically, note any executionRecord claims you are not 100% sure about. Phase 5 will verify them; the watchlist makes that fast.

This is the single most reliable defense against compaction. If the conversation compacts and the agent loses memory, the next session reads this file and knows exactly what is done plus what to verify.

Shipped feature task (status='done')

piyaz_create items with full payload:

  • title: verb+noun.
  • description: 2 to 4 sentences. Per artifacts §1 onboarding rule: write the description as if creating the task BEFORE the work, knowing what you now know about the codebase. The reader must be able to re-derive the work. Do not write "added the auth middleware". Write "Build the JWT auth middleware in lib/auth/middleware.ts. Validate Bearer tokens against the user table, set req.user, reject on expiry. Required by every protected route."
  • executionRecord: 3 to 5 sentences. Cite real files, endpoints, functions. Distinct from description: HOW it was built. Concrete details: function names, file paths, endpoints, data formats. No speculation. No debugging stories. No filler. If you do not have the information, write less.
  • decisions: per artifacts §1 onboarding special case. Sources: manifest deps (Chose Drizzle over Prisma. Visible in package.json migration commit.), README and design docs, commit messages with keywords (chose, switched, replaced, migrated, moved). One-liner per decision: CHOICE + WHY. If a decision is not grounded in any of those, omit it. Better a shorter list than fabrication.
  • files: globbed from the subsystem directory, repo-relative. Must be paths that actually exist (you will verify in Phase 5).
  • acceptanceCriteria: 2 to 4 binary criteria, each marked {text, checked: true} since shipped.
  • category: one of the project categories.
  • tags: all three dimensions (work-type, cross-cutting, tech). Set priority as a first-class field; default for shipped work is core unless a critical capability is partial (then urgent).
  • status = 'done'.
  • No destructive edit ops. Onboarding creates tasks; it does not rewrite existing ones.
Draft task (status='draft') for visible unfinished work
  • title: verb+noun.
  • description: 2 to 4 sentences. WHAT needs building, WHY it is needed, HOW it fits the existing architecture. Same onboarding rule as above: written as if planning the work fresh.
  • acceptanceCriteria: 2 to 4 binary, testable criteria, marked {text, checked: false}.
  • category: one of the project categories.
  • tags: all three dimensions (work-type, cross-cutting, tech). Set priority as a first-class field.
  • status = 'draft'.

Draft tasks MUST NOT have an executionRecord. That field implies the task shipped. Leave it out.

Never use status='in_progress'. That means "someone is actively implementing it right now". Onboarding-imported partial work is draft.

Edges

For each architectural dependency or cross-cutting relationship, piyaz_link action='create':

  • depends_on for cannot start without target (DB schema → API; auth → protected routes; HAL → drivers; agent loop → tools).
  • relates_to for shared context that does not block.
  • Note: write it as a brief to a future developer ("Subscriptions consume the auth middleware built in lib/auth/middleware.ts"). Empty notes are forbidden.

Inference signals (priority order):

  1. Architectural (strongest): DB schema → API → UI; auth → protected routes; framework boilerplate → feature code; HAL → drivers → protocols; agent loop → tools; data pipeline → training → inference.
  2. Import graph at the feature level (not per-file): module B imports from A, so B depends_on A.
  3. Git chronology as tiebreaker only. Never the primary signal.
Show full SKILL.md (1,633 more words)Show less
Quality checkpoints (resilience)

After every 5 done-task creates, pause and self-audit. Onboarding is higher-stakes per task than decompose because every done task carries executionRecord, decisions, and files claims. Drift here means fabrication slipping into shipped records.

  1. Re-read conventions §1 (Iron Law) and §3 (artifact quality, especially the onboarding-specific description rule).
  2. Pick the last 3 tasks you created. For each, score:
    • Description: 2 to 4 sentences? Written as if planning the work fresh (not as a retrospective)? If single-sentence or if it sounds like a changelog entry, REWRITE.
    • executionRecord: 3 to 5 sentences? Cites real files and functions? No speculation? If thin or unverified, REWRITE or remove the unverified claim.
    • decisions: grounded in manifest, README, or commit-keyword grep? If ungrounded, REMOVE the decision (better short than fabricated).
    • files: paths exist (you will run the Iron Law check in Phase 5, but a quick spot-check now catches obvious drift)?
    • ACs: 2 to 4 binary, all checked since shipped?
    • Tags: all three dimensions (work-type, cross-cutting, tech)? Priority field set?
  3. Fix any failures via piyaz_edit (surgical ops) BEFORE creating more tasks.

Catching a fabricated executionRecord at task 5 is a 30-second fix. Catching it at task 25 means a Phase 5 Iron Law check that fails on 5 tasks, plus rewrites.


Phase 5: Programmatic verification + summary

The Iron Law check (REPLACES self-audit)

Self-audits do not catch self-fabrication. Run a real check.

For every done task with non-empty files:

bash
for f in <space-separated paths from all done tasks>; do
  test -e "$f" || echo "MISSING: $f"
done

Run via Bash. Paste the output verbatim into your summary. If anything prints MISSING:, go back, fix the offending task's files (or remove the file paths and reduce the executionRecord's specificity), and re-run. Do not present a summary while any path is missing.

For every done task that names a function or endpoint in executionRecord:

bash
# Spot-check: pick 3 random done tasks, grep for the named symbols
grep -rn "<function_name>\|<endpoint_path>" <repo paths>

If any named symbol is not found in the repo, fix the executionRecord (remove the unverifiable claim) before continuing.

Validation checklist
  • Coverage: every feature from Phase 1 has at least one task.
  • Completeness: a developer could go from zero to shipped by completing all draft tasks in dependency order.
  • No orphans: every task either has a dependency edge or is a foundation.
  • No cycles: the dependency graph makes logical sense.
  • Parallelism: not everything is a single chain.
  • Criteria quality: every AC is binary; every task has 2 to 4 ACs (never 1).
  • Description depth: every description is 2 to 4 sentences (rewrite single-sentence descriptions).
  • Tag completeness: every task has all three tag dimensions (work-type, cross-cutting, tech) and a priority field set.
  • Category sanity: 4 to 8 categories, all architectural / product-area, none from the forbidden list.
  • Grounding: Iron Law check above passed (no MISSING: paths, named symbols verified).

If any check fails, fix and re-run. Then piyaz_workspace action='update' status='active'.

Summary (markdown, to the user)
  • Iron Law check output (paste verbatim, even if everything passed; show the user you ran it).
  • Total tasks (done count vs draft count).
  • Total edges.
  • Tag groups actually used.
  • Critical path: longest dependency chain among draft tasks.
  • Recommended next work: plannable draft tasks on the critical path.
  • Risks and open questions: flagged ambiguities, scope you could not confidently classify.

Phase 6: Housekeeping

The project is 'active' and the user has the summary. Two scaffolding artifacts remain from the resilience setup: the appended ## Onboarding Proposal (approved <date>) block in the project description (Phase 3 Step A), and the local working file .piyaz/onboarding-<projectIdentifier>.md (Phase 3 Step B). Both served their purpose during the run; once the task graph is the source of truth, leaving them in place makes the project look mid-decompose.

Offer cleanup. Do not auto-clean. A user may want to keep the proposal as an audit trail or the working file for forensic review. Ask, do not assume.

Ask the user (one prompt, two items):

  "Project is active. Two cleanup items left over from the run:
   1. Refresh the project description. Right now it still has the
      `## Onboarding Proposal (approved <date>)` block appended; the task
      graph already holds the structural truth. I can replace it with a
      tight 3-5 sentence synthesis.
   2. Delete the working file `.piyaz/onboarding-<projectIdentifier>.md`.
   OK to do both, one, or neither?"
Step 1: Refresh the project description

If the user approves:

  1. Compose a tight 3-5 sentence synthesis of what the project actually is now (purpose, how it is built, key constraints, primary domain). The task graph holds the structural truth; the description is the project-level elevator pitch.
  2. Show the proposed text to the user. Confirm before writing.
  3. piyaz_workspace action='update' description='<new synthesis>'. The description field is a scalar replace, so this drops the appended ## Onboarding Proposal block entirely.

If the user declines this step, leave the description as-is and note in the closing message that the proposal block is still appended.

Step 2: Delete the local working file

If the user approves: delete .piyaz/onboarding-<projectIdentifier>.md, then remove .piyaz/ itself only if it is now empty. Do not force the directory removal — if another agent has a working file there (an in-flight decompose run, for example), leave the directory in place.

If the user declines, leave the file in place.

When to skip the offer entirely
  • A compaction signal fires inside Phase 6 itself. Surface the leftovers explicitly so the next session knows they exist; do not silently truncate.
  • Your sandbox cannot delete files (write-restricted, non-POSIX shell with no equivalent, or otherwise). Surface the limitation and ask the user to clean up the working file manually. Step 1 (description refresh) is unaffected — it's an MCP tool call.

Heuristics

Feature vs scaffolding

Include if it is more than 1h of deliberate work producing testable output: user-facing capability, API surface, architectural layer with multiple files, kernel primitive, training pipeline stage, agent capability, etc.

Exclude: eslint, prettier, tsconfig, .gitignore, framework defaults, generated files, lockfiles. These are not features.

Sourcing description (onboarding mode)

2 to 4 sentences. Write as if creating the task BEFORE the work, knowing what you now know about the codebase. Describe the SHAPE of the feature: what capability it provides, where it sits in the architecture, what it interfaces with. Pull from README sections, module docstrings, the feature directory structure. Do NOT duplicate executionRecord. Description is about scope and role; executionRecord is about how it was built.

Sourcing executionRecord

Combine exported API signatures, key file paths, and commit subject lines from the feature area. 3 to 5 sentences. No speculation, no debugging stories, no filler. If you do not have the information, write less.

Sourcing decisions (onboarding special case per artifacts §1)
  • Library choices from manifests: "Chose Drizzle over Prisma. Visible in package.json migration commit."
  • Architecture statements from README or design docs.
  • Commit messages with keywords chose, switched, replaced, migrated, moved.

If a decision is not grounded in any of those, omit it. Better a shorter list than fabrication.

Sourcing files
  • Glob the subsystem directory.
  • Include direct config files for the feature.
  • Exclude tests unless the task IS testing.
  • If uncertain, leave files empty rather than guess. The Iron Law check will flag any path that does not exist.

Compaction signals: STOP and resume

If you sense any of these during the session, STOP creating tasks and run resume mode (resilience):

  • Tasks exist in the project that you do not remember creating.
  • Decisions you remember making are no longer in your context.
  • You cannot account for tasks the proposal called for.
  • The user said "continue" or "resume".
  • Your sense of progress through the proposal is fuzzy.
  • The conversation has been long and you suspect compaction.

Resume mode: piyaz_activity project='<identifier>' since='<last certain instant>', re-read the project description (which contains the persisted proposal), diff against the proposal, re-send the batch (piyaz_create skips existing titles). Do not power through. A second-run that creates duplicate done-tasks with fabricated executionRecords is the worst possible failure for onboarding: it pollutes the graph with claims that the Iron Law check cannot fully recover.

Token discipline

  • Do not read every file. Read the architectural anchors (manifest, README, top-level dirs, migration dir, key feature dirs).
  • Use Glob to enumerate before Read. Cheaper than reading speculatively.
  • Phase 3 is markdown text, not tool calls. The user reads the proposal; you do not burn tokens on speculative writes.
  • Phase 4 task creates are N MCP roundtrips. For 30 tasks expect 30 + ~M edge calls. Do not artificially batch, but do not pad either.
  • Re-read references/conventions.md mid-session if your sense of the rules drifts. LLMs forget over long sessions; refreshing is cheap.

Rules

  • ALWAYS read skills/piyaz/references/conventions.md at session start, and re-read mid-session before Phase 4 writes.
  • ALWAYS run the Phase 0 match check correctly: distinguish status 'active' (stop) from status 'brainstorming' or 'decomposing' (resume mode).
  • ALWAYS finalize the Phase 3 task enumeration before writing the proposal headers; the header counts (N tasks, M edges) must match the bullets when the user sees the proposal. Drift between header and list signals careless drafting and breaks the gate.
  • ALWAYS persist the approved proposal to the project description after the HARD-GATE clears, before Phase 4 (resilience).
  • ALWAYS read the deduped list on every piyaz_create response; the server dedupes by exact title (resilience).
  • ALWAYS run a quality checkpoint after every 5 done-task creates (resilience).
  • ALWAYS define match formally (Step 3 above): case-insensitive whole-word.
  • ALWAYS ask on monorepo detection. Never default.
  • ALWAYS run the Iron Law check in Phase 5. The self-audit alternative is theatre.
  • ALWAYS offer Phase 6 housekeeping after Phase 5: refresh the project description (drops the ## Onboarding Proposal block) and delete .piyaz/onboarding-<projectIdentifier>.md. Auto-cleanup is forbidden; require explicit user confirmation per item. The user may keep either or both.
  • NEVER fabricate an executionRecord, decision, or file path.
  • NEVER create tasks before the Phase 3 HARD-GATE clears.
  • NEVER use status='in_progress'. Partial work is draft.
  • NEVER add executionRecord to a draft task.
  • NEVER write a one-sentence description or a single-AC task.
  • NEVER use git log --all. It surfaces irrelevant ancient history.
  • NEVER use forbidden categories (requirements, architecture, planning, bugs, features, tbd, misc, open-questions). Artifacts §4.
  • NEVER write text into Piyaz while sounding like a chatbot. No em dashes, no marketing words, no AI throat-clearing. Artifacts §6.
  • NEVER recreate a task when its title already exists in the project. Resume mode + idempotent dedupe protects against this (resilience).
  • NEVER power through a session after a compaction signal. STOP and resume mode (resilience).
  • ALWAYS read tool _hints and act on them.

© FrkAk, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/codex/skills/onboarding of FrkAk/piyaz.

Open the folder on GitHubat commit a0d97a4

Compare with similar skills

Onboarding next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Onboarding compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Onboarding this skillFrkAk/piyaz194—~8.7kAutomated safety check: PassAGPL-3.0
Chatgpt App Builderalpic-ai/skybridge2.2k—~1kAutomated safety check: PassMIT
MCP App Builderalpic-ai/skybridge2.2k—~906Automated safety check: PassMIT
Skybridgealpic-ai/skybridge2.2k—~923Automated safety check: PassMIT
Discoveranombyte93/prd-taskmaster605—~2.4kAutomated safety check: PassMIT
PadPerpetualSoftware/pad188—~10kAutomated safety check: NotesApache-2.0

Similar skills

  • Chatgpt App Builder

    alpic-ai/skybridge

    Guide developers through creating and updating ChatGPT plugins.

    2.2k GitHub stars~1k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • MCP App Builder

    alpic-ai/skybridge

    Guide developers through creating and updating MCP Apps. An agent skill from alpic-ai/skybridge.

    2.2k GitHub stars~906 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Skybridge

    alpic-ai/skybridge

    Guide developers through creating and updating ChatGPT plugins and MCP Apps.

    2.2k GitHub stars~923 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Discover

    anombyte93/prd-taskmaster

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery.

    605 GitHub stars~2.4k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Pad

    PerpetualSoftware/pad

    Talk to your project. An agent skill from PerpetualSoftware/pad.

    188 GitHub stars~10k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • Octocode Rfc Generator

    bgauryy/octocode

    A skill your agent uses when a consequential change needs a decision before coding: write or improve an RFC, design doc, architecture proposal, migration plan, option comparison, rollout plan, or…

    949 GitHub stars~1.1k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from FrkAk/piyaz

All 8 skills in this repo
  • Brainstorm

    FrkAk/piyaz

    A skill your agent uses when the user has a net-new software project idea that needs shaping into a brief before tasks can be created.

    194 GitHub stars~4k tokensUpdated 11 days ago
    Auto-check passed
  • A skill your agent uses when the user wants to add a new feature, capability, or cluster of work to an existing active Piyaz project.

    194 GitHub stars~4.7k tokensUpdated 11 days ago
    Auto-check passed
  • Decompose Task

    FrkAk/piyaz

    A skill your agent uses when an existing task in an active Piyaz project carries scope larger than 13 points worth of work (composer's research brief raised the oversize-task flag, or the user…

    194 GitHub stars~4.3k tokensUpdated 11 days ago
    Auto-check passed
  • Piyaz

    FrkAk/piyaz

    A skill your agent uses when the user wants to plan, decompose, track, or resume a multi-task project: scoping a new idea, importing or onboarding an existing repo or workspace, asking what to work…

    194 GitHub stars~13k tokensUpdated 11 days ago
    Auto-check passed
  • Composer

    FrkAk/piyaz

    A skill your agent uses when the user types /piyaz:composer, /piyaz:composer <taskRef, or /piyaz:composer rework <taskRef|pr-url, or asks to run the next Piyaz task end-to-end, ship the backlog…

    194 GitHub stars~8.6k tokensUpdated 11 days ago
    Auto-check: warnings
  • Decompose

    FrkAk/piyaz

    A skill your agent uses when a Piyaz project exists with a description but few or no tasks, and the user wants it broken into an implementable graph (project-level decomposition).

    194 GitHub stars~7.5k tokensUpdated 11 days ago
    Auto-check passed

Categories

Questions about Onboarding

What does Onboarding do?

A skill your agent uses when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N. Onboarding is an agent skill from FrkAk/piyaz. Use when the current repo has existing code but no Piyaz project that matches it, and the user wants to adopt Piyaz on day N.

When should I use Onboarding?

Onboarding fits situations like: the current repo has existing code but no Piyaz project that matches it; the user wants to adopt Piyaz on day N; no code exists yet (route to brainstorm); A Piyaz project for this repo already exists (route to manage).

How do I install Onboarding in Claude Code?

Run `npx skills add FrkAk/piyaz --skill onboarding -a claude-code`. Or copy the skill folder (plugins/codex/skills/onboarding in FrkAk/piyaz) into .claude/skills/onboarding in your project. Claude Code loads it when a task matches its description.

How do I install Onboarding in Codex?

Run `npx skills add FrkAk/piyaz --skill onboarding -a codex`. Or copy the skill folder (plugins/codex/skills/onboarding in FrkAk/piyaz) into .agents/skills/onboarding in your project. Codex loads it when a task matches its description.

Can I use Onboarding in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FrkAk/piyaz --skill onboarding -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/onboarding, .gemini/skills/onboarding, .github/skills/onboarding and .opencode/skills/onboarding in your project.

What does Onboarding need to run?

Going by SKILL.md and its folder, Onboarding needs the command-line tools its instructions call (git and dbt).

Does Onboarding access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Onboarding safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Onboarding use?

Onboarding is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Onboarding use?

About 8.7k tokens (SKILL.md is roughly 35k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Onboarding?

Skills that share tags, products or a category with Onboarding: Chatgpt App Builder (alpic-ai/skybridge, 2.2k stars), MCP App Builder (alpic-ai/skybridge, 2.2k stars), Skybridge (alpic-ai/skybridge, 2.2k stars) and Discover (anombyte93/prd-taskmaster, 605 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Onboarding?

FrkAk (a GitHub user) maintains it in FrkAk/piyaz, which has 194 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 29, 2026.

Source: FrkAk/piyaz on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.