agentleFS
nyldnnyldn/claude-octopus/.claude/skills/skill-factory/SKILL.md

skill-factory

Skill4.2k starsChanged 4 months agoMITView on GitHub

Run a full build-and-ship pipeline from a spec — use for hands-off project generation

10 other projects use a version of this, 1 of them edited.

Trending

Quiet since October.about the whole repository

Jan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 4 mentionsApr 2026: 3 mentionsMay 2026: 1 mentionJun 2026: 8 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 11 mentionsOct 2026: 5 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the nyldn/claude-octopus repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about nyldn/claude-octopus

The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 36

Talked about on GitHub, Bluesky and Hacker News (36 times).

On GitHub · 33

28 more on GitHub

On Bluesky · 2

On Hacker News · 1

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    DO NOT call Skill() again.

    line 18
  2. Distinctive:

    Ask via AskUserQuestion BEFORE any other action:

    line 23
  3. Distinctive:

    If spec path provided inline with the command, use it but still ask remaining questions.

    line 28
  4. Distinctive:

    If user says "skip", use defaults and proceed.

    line 29
  5. Distinctive:

    DO NOT proceed to Step 2 until answered.

    line 30
  6. Distinctive:

    If spec file missing → STOP, ask user for correct path.

    line 66
  7. Distinctive:

    If spec is thin (< 50 words) → WARN but proceed.

    line 67
  8. Distinctive:

    DO NOT proceed past this gate if file does not exist.

    line 68
  9. Distinctive:

    If a second provider is available, dispatch the challenge through Octopus routing:

    line 83
  10. Very specific:

    If CRITICAL-GAPS found: warn the user and suggest refining the spec with /octo:spec before proceeding

    line 110
  11. Distinctive:

    If GAPS-FOUND: note the gaps but proceed — the holdout phase (Phase 5) will catch some of these

    line 111
  12. Distinctive:

    If SUFFICIENT: proceed with confidence

    line 112
  13. Very specific:

    If validation fails: report error, show logs from ~/.claude-octopus/logs/, DO NOT proceed, DO NOT substitute.

    line 148

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

STOP - SKILL ALREADY LOADED

DO NOT call Skill() again. Execute directly.

EXECUTION CONTRACT (MANDATORY — 8-step sequence, CANNOT SKIP)

STEP 1: Clarifying Questions (MANDATORY)

Ask via AskUserQuestion BEFORE any other action:

  1. Spec location — path to NLSpec file, or paste inline
  2. Satisfaction target override (Use spec default / Custom 0.80-0.99)
  3. Cost approval — ~0.50-2.00 USD for ~20-30 agent calls (Approve / Approve --ci / Decline)

If spec path provided inline with the command, use it but still ask remaining questions. If user says "skip", use defaults and proceed. DO NOT proceed to Step 2 until answered.

STEP 2: Display Visual Indicators (MANDATORY — BLOCKING)

Check providers:

command -v codex &> /dev/null && codex_status="Available" || codex_status="Not installed"
command -v agy &> /dev/null && agy_status="Available" || agy_status="Not installed"

Display banner:

🐙 CLAUDE OCTOPUS ACTIVATED - Dark Factory Mode
Pipeline: Parse → Scenarios → Embrace → Holdout → Score → Report

Providers:
  Codex CLI - <status> — Scenario generation + holdout evaluation
  Antigravity CLI - <status> — Additional external-model challenge
  Claude - Orchestration + satisfaction scoring

Spec: <path>
Estimated: 0.50-2.00 USD / 15-45 min

Validation: All external providers unavailable → continue with Claude-only (warn user about reduced diversity). At least one available → proceed normally.

STEP 3: Validate Spec File (MANDATORY — Validation Gate)

if [[ ! -f "<spec_path>" ]]; then
    echo "ERROR: Spec file not found at <spec_path>"
    exit 1
fi
# Check minimum content
word_count=$(wc -w < "<spec_path>")
if [[ $word_count -lt 20 ]]; then
    echo "WARNING: Spec is very thin ($word_count words). Results may be limited."
fi

If spec file missing → STOP, ask user for correct path. If spec is thin (< 50 words) → WARN but proceed. DO NOT proceed past this gate if file does not exist.

STEP 4: Read Prior State (OPTIONAL)

"${HOME}/.claude-octopus/plugin/scripts/state-manager.sh" init_state 2>/dev/null || true
"${HOME}/.claude-octopus/plugin/scripts/state-manager.sh" set_current_workflow "factory" "factory" 2>/dev/null || true

Failure → continue without state, warn user.

STEP 4.5: Adversarial Scenario Coverage Gate (RECOMMENDED)

Before committing to the expensive embrace phase (~0.50-2.00 USD), verify that generated scenarios actually cover the spec's edge cases. A quick cross-provider challenge here can prevent wasting an entire factory run on incomplete scenario coverage.

After orchestrate.sh parses the spec (Phase 1-2) and before embrace execution (Phase 4), dispatch a scenario coverage review:

If a second provider is available, dispatch the challenge through Octopus routing:

# Read the spec to extract behaviors and constraints
SPEC_CONTENT=$(<"<spec_path>")
review_provider=""
command -v codex >/dev/null 2>&1 && review_provider="codex"
[[ -z "$review_provider" ]] && command -v agy >/dev/null 2>&1 && review_provider="agy"

if [[ -n "$review_provider" ]]; then
  "${HOME}/.claude-octopus/plugin/scripts/orchestrate.sh" spawn "$review_provider" \
    "You are a QA adversary. Given this specification and generated scenarios, identify coverage gaps.

SPECIFICATION:
${SPEC_CONTENT}

Answer:
1. Which spec BEHAVIORS have no scenario testing them?
2. Which EDGE CASES from the spec constraints are untested?
3. Which FAILURE MODES are not covered (network failures, invalid input, concurrent access)?
4. Rate overall coverage: SUFFICIENT / GAPS-FOUND / CRITICAL-GAPS

Be specific — cite the behavior or constraint ID that lacks coverage." 2>/dev/null || true
fi

After receiving the challenge response:

  • If CRITICAL-GAPS found: warn the user and suggest refining the spec with /octo:spec before proceeding
  • If GAPS-FOUND: note the gaps but proceed — the holdout phase (Phase 5) will catch some of these
  • If SUFFICIENT: proceed with confidence

This is a lightweight gate — it adds ~30 seconds but can save a 2.00 USD factory run on a spec with poor scenario coverage.

Skip with --fast or when user explicitly requests speed over thoroughness.


STEP 5: Execute orchestrate.sh factory (MANDATORY — Bash Tool)

${HOME}/.claude-octopus/plugin/scripts/orchestrate.sh factory --spec "<spec_path>"

With optional flags based on Step 1 answers:

  • --holdout-ratio <value> if custom ratio requested
  • --max-retries <value> if custom retry count
  • --ci if user approved non-interactive mode
<HARD-GATE> PROHIBITED from: - Running embrace directly (MUST use factory command which wraps it) - Simulating or faking holdout testing - Substituting direct Claude analysis for multi-provider scoring - Skipping the factory pipeline - Creating working/progress files in plugin directory </HARD-GATE>

STEP 6: Verify Factory Report (MANDATORY — Validation Gate)

REPORT_FILE=$(find .octo/factory -name "factory-report.md" -mmin -60 2>/dev/null | sort -r | head -1)
if [[ -z "$REPORT_FILE" ]]; then
    echo "ERROR: Factory report not found"
    exit 1
fi
cat "$REPORT_FILE"

If validation fails: report error, show logs from ~/.claude-octopus/logs/, DO NOT proceed, DO NOT substitute.

STEP 7: Read Scores and Present Results (MANDATORY)

SCORES_FILE=$(find .octo/factory -name "satisfaction-scores.json" -mmin -60 2>/dev/null | sort -r | head -1)
if [[ -n "$SCORES_FILE" ]]; then
    cat "$SCORES_FILE"
fi

Present to user:

  1. Verdict with emoji (PASS/WARN/FAIL)
  2. Composite score vs satisfaction target
  3. Dimension breakdown (behavior, constraints, holdout, quality)
  4. Holdout highlights — which blind scenarios passed/failed
  5. Artifact directory path for deep review

STEP 8: Update State & Next Steps (MANDATORY)

"${HOME}/.claude-octopus/plugin/scripts/state-manager.sh" record_decision "factory" "Factory run completed: <verdict> (<score>/<target>)" 2>/dev/null || true

Present next-step suggestions based on verdict:

  • PASS: Implementation meets spec. Review artifacts, run manual testing, ship.
  • WARN: Close to target. Review holdout failures, consider targeted fixes.
  • FAIL: Below target. Review holdout-results.md for specific failures. Consider:
    • Refining the NLSpec with /octo:spec
    • Manual fixes + re-run with --max-retries 2
    • Breaking spec into smaller, clearer pieces

Include attribution footer:

Dark Factory Mode powered by Claude Octopus v8.25.0
Pipeline: Spec → Scenarios → Embrace → Holdout → Score → Report
Providers: Codex | Antigravity | Claude

Error Handling (by step)

  • Step 1 (Questions): If user declines all, proceed with defaults
  • Step 2 (Providers): Both external unavailable → Claude-only mode (warn)
  • Step 3 (Spec): File missing → STOP. Thin spec → WARN and proceed.
  • Step 4 (State): Failure → continue without state
  • Step 5 (orchestrate.sh): Show bash error, check logs — DO NOT substitute
  • Step 6 (Report): Missing → show logs, DO NOT proceed
  • Step 7 (Scores): Missing JSON → extract from report markdown
  • Step 8 (State): Failure → skip state update, still present results

Prohibited Actions

  • CANNOT skip orchestrate.sh factory execution
  • CANNOT simulate or fake the factory pipeline
  • CANNOT substitute direct Claude analysis for multi-provider scoring
  • CANNOT skip spec validation gate
  • CANNOT proceed past a failed validation gate
  • CANNOT create working/progress files in plugin directory

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.