skills/oss-ready-flow/SKILL.md
Prepare a repository for end-to-end OSS release across 6 sub-agent steps: audit, branch cleanup, docs, README, publications, optional Pages. Use for 'full OSS prep', 'OSS release flow', 'open-source this repo'. Skip for audit-only (use oss-ready) or single-doc edits.
npx skillsauth add montimage/skills oss-ready-flowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate the full path from a working private/internal project to an OSS-ready public repository. Wraps the existing oss-ready audit skill and adds branch cleanup, doc generation, README polish, related-publications collection, and an optional GitHub Pages landing page.
The skill runs 6 steps sequentially, with one sub-agent per step so the main conversation stays clean. Every step writes a report to .oss-ready/<step>.md in the target repo, returns a structured summary to the main agent, and ends with an explicit user checkpoint before the next step starts.
Destructive actions (branch deletes) are plan-only by default with per-branch approval.
git available on PATH; the target is a git repo with at least one commitgh CLI authenticated (gh auth status) for any step that touches GitHub-side state (audit section 6, remote branch deletion, Pages enablement). If missing, those checks degrade to local-only with an explicit n/a reason in the reportoss-ready skill installed (this skill calls into its audit logic and reuses its asset templates)If any prerequisite is missing, stop and tell the user — do not silently degrade.
This skill performs destructive and visible-to-others actions. Every one is gated:
git branch -D) needs a separate "yes, force-delete <branch>" after seeing the unmerged commits.git commit.gh commands the user runs themselves.git checkout -- <file>) and re-dispatches.origin missing during Repo Sync (ask, do not skip), branch labelled protected-do-not-touch (refuse to touch even on user request without a second confirmation).Before making any changes, sync with the remote to avoid conflicts:
branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"
If the working tree is dirty, stash first, sync, then pop. If origin is missing or conflicts occur, stop and ask the user before continuing.
AskUserQuestion.<step>.<run-N>.md; prior reports are not overwritten..oss-ready/ at the repo root.Spawn general-purpose sub-agent Auditor. Brief: see references/sub-agent-briefs.md (Step 1).
After the sub-agent returns, emit the Step 1 Step Completion Report (template in references/expected-output.md), list Done and To do items, and ask: "Proceed to Step 2 (branch cleanup)? [yes / skip / stop]". Wait for confirmation.
Goal: end with main as the only branch, with all valuable work merged or archived.
Spawn sub-agent Branch Analyst (read-only). Brief: references/sub-agent-briefs.md (Step 2).
After the report comes back, emit the Step 2 report (template in references/expected-output.md). Then for each non-protected branch, ask the user per branch with AskUserQuestion:
Execute approved actions one at a time. After each action, append the result to .oss-ready/02-branches.md. Never use git push --force or git branch -D without an explicit "yes, delete <branch-name>" from the user.
Action point: "Branch cleanup done. Proceed to Step 3 (docs)? [yes / skip / stop]"
Two sub-agents run in sequence:
references/sub-agent-briefs.md (Step 3a). Result lands in .oss-ready/03-docs-plan.md.references/sub-agent-briefs.md (Step 3b).Show each diff to the user before moving on. The user can request revisions inline; re-dispatch the Writer with the revision request.
For LICENSE / CODE_OF_CONDUCT.md / SECURITY.md, the Writer must cp from oss-ready/assets/ rather than read+write — those files contain language that triggers content filtering on read. Use sed for placeholder substitution after copying.
Action point: "Docs done. Proceed to Step 4 (README)? [yes / skip / stop]"
Spawn sub-agent README Polisher. Brief: references/sub-agent-briefs.md (Step 4).
Show the diff to the user. Apply on approval. Do not commit.
Action point: "README done. Proceed to Step 5 (related publications)? [yes / skip / stop]"
Spawn sub-agent Publications Researcher. Brief: references/sub-agent-briefs.md (Step 5).
The main agent must pause the sub-agent after its baseline repo scan to ask the user for known publications and whether to do an external web search, then resume the sub-agent with that input.
After the sub-agent returns, show the proposed ## Related Publications README section, apply on approval, and update .oss-ready/04-readme-diff.md accordingly.
Action point: "Publications done. Add a landing page (Step 6, optional)? [yes / skip / stop]"
If the user opts in, spawn sub-agent Landing Page Builder. Brief: references/sub-agent-briefs.md (Step 6).
If declined, mark step 6 as skipped in the final report.
After all steps (or after the user stops), emit the Final Summary block (template in references/expected-output.md). List every file created/modified, open questions the user deferred, manual follow-ups (gh repo edit --add-topic ..., "Enable GitHub Pages in repo settings"), and a suggested commit message for the user to run themselves.
All sub-agents are spawned with subagent_type: general-purpose (or Explore for purely read-only audit-style passes) and a self-contained brief from references/sub-agent-briefs.md. Each brief specifies: what to read, what to write (exact paths under .oss-ready/), what NOT to modify, and what to return (≤ 200 words).
The main agent never duplicates the sub-agent's work. After receiving a summary, the main agent surfaces it to the user, asks the action-point question, and waits.
The skill is restartable. .oss-ready/ is the source of truth. On re-invocation, the main agent reads .oss-ready/ first, asks the user where to resume, and continues from that step. New runs append to existing reports as <step>.<run-N>.md.
The flow is complete when:
.oss-ready/01-audit.md exists with PASS or PARTIAL status and explicit per-section countsgit branch -a showing only main and user-kept protected branchesdocs/ (or are explicitly skipped) and are referenced from the READMEdocs/, related publications section, license.oss-ready/05-publications.md exists with at least the repo-scanned baseline (zero entries is valid if confirmed)docs/index.md (or equivalent) and _config.yml are present, and .oss-ready/06-landing-page.md documents the Pages enable stepsA run that stops mid-flow is a partial, not a failure. Step 7 always runs and labels each step done | partial | skipped.
See references/expected-output.md for the full target directory layout, the per-step Step Completion Report templates, and the Final Summary block.
See references/edge-cases.md for the full list. Key entries: no git remote, partially-OSS repo, user stops mid-step, conflicting branch deletions, huge README diffs, sub-agent scope violations, prior-run reports, target-is-skills-repo.
This skill ships no assets of its own. Templates come from the oss-ready skill (/Users/montimage/dev-montimage/skills/skills/oss-ready/assets/) and from docs-generator where applicable.
references/sub-agent-briefs.md — verbatim briefs for every sub-agentreferences/expected-output.md — directory layout and report templatesreferences/edge-cases.md — recovery and refusal patternsdocs/README.md — human-facing overviewdevelopment
Expand unit test coverage by targeting untested branches and edge cases. Use when users ask to "increase test coverage", "add more tests", "expand unit tests", "cover edge cases", "improve test coverage", "find untested code", "what's not tested", "run coverage report", "write missing tests", or want to identify and fill gaps in existing test suites. Adapts to project's testing framework. Trigger this skill whenever the user mentions test gaps, untested code, coverage percentages, or wants to harden their test suite.
development
Audit npm/pip/Docker/GitHub Actions for supply chain risks; apply cooldown, lockfile, ignore-scripts, SHA pinning, scanning after approval. Use for 'supply chain audit', 'harden dependencies'. Skip for runtime vulns, secret scanning, code review.
development
Analyze agent skills for security risks, malicious patterns, and potential dangers before installation. Use when asked to "audit a skill", "check if a skill is safe", "analyze skill security", "review skill risk", "should I install this skill", "is this skill safe", "scan this skill", or when evaluating any skill directory for trust and safety. Also triggers when the user pastes a skill install command like "npx skills add https://github.com/org/repo --skill name". Produces a comprehensive security report with a clear install/reject verdict. Trigger this skill proactively whenever the user is about to install a third-party skill or mentions concerns about skill safety.
development
Add OSS-standard files (README, CONTRIBUTING, LICENSE, CODE_OF_CONDUCT, SECURITY, GitHub templates) and run an 8-section readiness audit. Use for 'make this open source', 'OSS readiness', 'public release'. Skip for marketing pages or closed code.