skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
tikalk/adlc-team-skills139 installs

factory-product

Use when orchestrating a product lifecycle (specify/init → clarify → implement → analyze) to generate or verify PRD.md.

How do I install this agent skill?

npx skills add https://github.com/tikalk/adlc-team-skills --skill factory-product
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill orchestrates a product development lifecycle using automated scripts for branch management and Merge Request creation. It features unattended execution triggered by environment variables and processes codebase content to generate documentation, which introduces a surface for indirect prompt injection.

  • Socketwarn

    1 alert: gptAnomaly

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

factory-product

In a factory run — read this first

When ADLC_RUN_ID is set, the workflow engine runs this step unattended and a gate follows it. Do exactly this:

  1. Start: bash {REPO_ROOT}/.agents/skills/factory-mission/scripts/bash/run-branch.sh — on Windows, pwsh {REPO_ROOT}/.agents/skills/factory-mission/scripts/powershell/run-branch.ps1 (every helper has a PowerShell twin under scripts/powershell/; use it instead of the bash one on Windows)
  2. Run the lifecycle steps the DAG resolves for the issue. After each step that changed files: commit-step.sh with every path it wrote, moved or deleted.
  3. Before you return, always: open-mr.sh, then write a one-line conclusion into ADLC_STEP_OUTPUT. Do this whatever the outcome, even when nothing changed.
  4. Never ask for approval or wait for an answer. The engine's gate after this step is the approval; a question here ends the step with nothing published.

Only this orchestrator commits, pushes and opens the MR, and only through these helpers; product-* skills never do. Details: Run Branch, Step Commits and Draft MR.


What this skill does

factory-product orchestrates the product-decisions lifecycle. It coordinates individual product-related skills (product-init, product-specify, product-clarify, product-implement, product-analyze) to maintain a consistent PRD.md at docs/adlc/product/PRD.md (the shared layout).

It operates as a Kind-A DAG orchestrator in alignment with the shared executor engine contract in factory-mission/references/executor.md.


When to use

  • You want to bootstrap, refine, or analyze a product's requirements and decisions (PDRs) end-to-end.
  • You want a guided, accept-gated, and verified product definition process with a resume checkpoint.

When NOT to use:

  • For software implementation task execution (use factory-mission instead).
  • For architecture decision records (use factory-architect instead).

Lifecycle DAG & Step Resolution

factory-product implements a fixed named-skill DAG (fixed step resolution):

Greenfield Route (default on empty project)

  1. specify (generate phase) -> Invoke product-specify to collaboratively capture PDR drafts in .adlc/drafts/pdr/.
  2. clarify⭐ (clarify phase) -> Invoke product-clarify to run interactive quality checks and mark PDRs Accepted (human sign-off gate).
  3. implement (build phase) -> Invoke product-implement to compile accepted PDRs into docs/adlc/product/PRD.md and promote them to docs/adlc/memory/pdr/.
  4. analyze (analyze phase) -> Invoke product-analyze to verify PRD/PDR consistency and output a severity-ranked report.

Brownfield Route (default if code exists but no PDRs)

  1. init (generate phase) -> Invoke product-init to reverse-engineer draft PDRs from the existing codebase.
  2. clarify⭐ → implement → analyze (same as Greenfield).

Refresh Route (default if PRD.md and memory PDRs already exist)

  1. analyze (analyze phase) -> Run product-analyze first to detect drift.
  2. clarify⭐ → implement → analyze (drift-correction cycle).

Shared Executor Overrides

factory-product overrides the shared executor engine primitives as follows:

  1. Publish Target: Fixed to local. Outputs are written to docs/adlc/memory/pdr/ and docs/adlc/product/PRD.md. If tracker-integrated, a tracker completion summary comment is also posted.
  2. Output Types: Steps use the following output_type assignments:
    • specify/init → draft (PDR drafts stay in .adlc/drafts/pdr/, not published to comment bus)
    • clarify⭐ → decision (accepted/rejected PDR list published to comment bus)
    • implement → artifact-ref (PRD.md path reference published, content stays on disk)
    • analyze → findings (severity-ranked consistency report published to comment bus)
  3. Correction Loop: If analyze returns CRITICAL or HIGH consistency errors, the executor routes back to clarify with the analyze marker in reads_from. clarify reads the findings from the PR/MR/issue comment bus (or local fallback). This loop is bounded by max_corrections (default 2); if exceeded, the orchestrator halts for human review.
  4. Supervision Default: hybrid. A human gate is hard-enforced at clarify⭐ (for PDR approvals) and at final PRD.md review.
  5. Pre-flight Check: Verifies that the product-* lifecycle skills are installed in the workspace before beginning Phase 0.

Run Branch, Step Commits and Draft MR

Requires: the factory-mission skill (provides the run helpers): adlc-cli skills add tikalk/adlc-team-skills --skill factory-mission

In a factory run (ADLC_RUN_ID set by the workflow engine) this orchestrator — and only it, never the product-* lifecycle skills — commits, pushes the run branch and opens the draft MR, always through these three helpers:

  1. Before the first step: bash {REPO_ROOT}/.agents/skills/factory-mission/scripts/bash/run-branch.sh — checks out factory/intent/<repo>-<iid> (from ADLC_ISSUE_REF) in the project root, reusing it or continuing from origin. Shared with the other intent lane and with re-dispatches.
  2. After each step (specify/init, clarify, implement, analyze fixes): bash {REPO_ROOT}/.agents/skills/factory-mission/scripts/bash/commit-step.sh --orchestrator factory-product --step <step> --output-type <draft|decision|artifact-ref|findings> --summary "<one line, no issue text>" --records <IDs> -- <paths the step wrote> Pass every path the step wrote, moved or deleted (a promoted draft's old path too; the helper also commits deletions inside the allowlist), and only paths inside the lifecycle write allowlist (.adlc/drafts/pdr/, docs/adlc/memory/pdr/, docs/adlc/product/PRD.md, .adlc/product/sections/, .adlc/product/state.json). It prints sha: <sha> or sha: none; put that sha in the step's bus marker (the bus carries pointers, not content). Never stage .adlc/workflows/**.
  3. Before you return, always: bash {REPO_ROOT}/.agents/skills/factory-mission/scripts/bash/open-mr.sh — pushes the run branch only, finds or opens one draft MR (merge commit, no squash; milestone/assignee per the MR-ownership decision) and writes mr_url to ADLC_STEP_OUTPUT, which the engine's gate links (context.link). Call it whatever the outcome — even when nothing was committed (sha: none, an analyze-only pass): with no commits on the run branch it opens nothing and the gate shows there is nothing to review. Also write a one-line conclusion into the same JSON object (the gate's intent-conclusion rule). In a factory run the engine's gate after this step is the approval: do not ask for approval yourself (no "approve implement?" question) — finish the steps the issue needs, run open-mr.sh, state the conclusion and return.

Outside a factory run the helpers do nothing unless the user opted in (adlc.commit_steps: true in .adlc/init-options.json, or --commit passed to this skill, which you forward to commit-step.sh); run-branch.sh and open-mr.sh never act without ADLC_RUN_ID. A helper's non-zero exit (refused path, missing committer identity, tracker scope) stops the run — report it, do not work around it.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/tikalk/adlc-team-skills/factory-product">View factory-product on skillZs</a>