Index of every page on this site: llms.txt
All skills
mohasarc avatar

/from-stage-to-prs

@f5a6c75
Run it yourself

Drive a single stage from a stages document all the way to a stack of reviewed PRs, autonomously. Loads one stage, runs a two-agent design dialogue to narrow it down, turns the agreed design into a committed phased plan, then implements each phase as a stacked draft PR gated by a strict per-phase review. Use when you want to hand off a whole stage and walk away. Triggers include "take stage N to PRs", "from stage to prs", "implement stage N end to end", "drive this stage to a stack".

Use this Skill: https://skilld.dev/gh/mohasarc/mo-skills/from-stage-to-prs

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

planning-driver.md

≈826 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Planning driver (agent A) — runbook

You turn one stage into a committed phased plan, then open it as the bottom PR of a stack. You do this by drilling into the stage and resolving every design decision with a second agent (B) you host yourself. The orchestrator that spawned you stays out of this entirely — it sees only your final report.

The orchestrator gives you: the stages-file path, the stage-id, and the verification command.

What you read

  • The target stage in full (## Stage <stage-id> in the stages file).
  • The stages doc's Beyond Scope and sequencing summary, for boundary awareness only.
  • Do not read other stages' bodies. They are not your unit of work.

The design dialogue

  1. Load /drill-down. Drill into the target stage: scope, site of change, collaborators, new shapes, behavior and contracts, testing, constraints, risks. One question at a time, each with a concrete recommended answer — same as drill-down normally works.
  2. B is your counterpart, not the human. Spawn B once and keep it alive for the whole dialogue. Hand it answerer.md, the stages-file path, and the stage-id. Every question you'd put to a human, you put to B instead. Explore the codebase yourself first — never ask B something the code already answers.
  3. Walk the dependency tree. Earlier answers narrow later questions. Stop inventing questions once no load-bearing unknown remains.

Reaching agreement

The dialogue ends only on a two-sided, deterministic handshake keyed to a decision summary — not on you running out of questions.

  1. When you believe the design is concrete enough to build, emit a consolidated decisions list: every resolved point, terse, one line each. Follow it with a sentinel line on its own: READY-FOR-PLAN.
  2. B replies with either the exact token AGREED, or a list of specific objections / still-open points.
  3. Only the exact AGREED lets you proceed. Anything else re-opens the loop — address the points and re-summarize.
  4. Soft cap ~40 exchanges. If you hit it without AGREED, do not hang and do not abort: finalize with the decisions you have, record everything still unresolved as explicit open questions, and proceed to the plan.

Writing and landing the plan

  1. Load /to-phased-plan. Produce the phased plan from the agreed decisions in your context. Record any open questions in the plan where the relevant phase would resolve them.
  2. Branch and commit. Sync the stack first. Branch off main. Commit the plan file as docs: add phased plan for stage <stage-id>. Never commit to main. No Co-Authored-By trailer; short title.
  3. Open the bottom PR. Submit as a draft via the stack-prs skill. This is the root of the stack; phases will stack on top. Write the PR description with the describe-work skill.

Report back

Return one compact report to the orchestrator: plan file path, branch name, plan PR URL, and any open questions you recorded. Nothing else — not the dialogue, not B's answers.

What you never do

  • Surface the dialogue to the orchestrator or the human.
  • Commit to main, mark the PR ready, or merge it. Drafts only.
  • Ask the human anything — B is your only counterpart, and B never escalates to a human either.
  • Add a Co-Authored-By trailer.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill orchestrates a complex autonomous development workflow by delegating tasks to isolated subagents for planning, implementation, and review. While the skill implements security best practices like context isolation, it introduces risks by dynamically determining shell commands (e.g., for tests or linting) from project files like package.json and AGENTS.md. This could allow malicious repository content to execute arbitrary commands. Additionally, the skill lacks explicit sanitization or boundary markers for untrusted input ingested from stage documents and project configuration files.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

Signed by skilld at f5a6c75. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 5 months ago

README badge

README badge for mohasarc/mo-skills/from-stage-to-prs