agentleFS
PabloNAXPabloNAX/ultracode-skill/ultracode/SKILL.md

ultracode

Skill182 starsChanged 6 months agoMITView on GitHub

Run a lightweight Ultracode workflow for serious coding tasks: plan, split, delegate when useful and allowed by the host, integrate, and verify. Use when the user explicitly invokes ultracode, $ultracode, ultra code, dynamic workflow, workflow orchestration, multi-agent workflow, subagent workflow, parallel agents, swarm, delegate this, split this across agents, or independent verification pass.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. Suraj1235/open-dynamic-workflows★ 35same name
    2. f-ewald/claude-skills★ 1same name
    3. malakhov-dmitrii/grok-ultracode★ 1same name
    4. Geoffe-Ga/well-worn-tools★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

70 rules. 0 are common, 49 are distinctive, and 21 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 49

    Distinctive

    This author's own choices. Worth a look.

  • 21

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a supervised workflow for work that needs planning, packetization, native agent delegation, integration, and verification.

    line 8
  2. Distinctive:

    Do not claim to be an official Claude, OpenAI, Google, or Antigravity feature.

    line 14
  3. Distinctive:

    Use task-specific tools exposed by the current host when the task needs them.

    line 16
  4. Distinctive:

    Create and update workflow artifacts directly as Markdown and JSON files.

    line 17
  5. Distinctive:

    Use native subagents when the current host exposes them, the task benefits from parallel work, and the user's request or host policy …

    line 18
  6. Distinctive:

    Do not commit, push, publish, or deploy unless the user explicitly asks for that action.

    line 19
  7. Very specific:

    Treat an explicit ultracode, $ultracode, or "ultra code" request as permission to choose delegated mode when the host allows that …

    line 20
  8. Distinctive:

    If a host policy requires separate delegation wording, do not fight it.

    line 25
  9. Distinctive:

    Use the smallest workflow that can prove the result.

    line 27
  10. Distinctive:

    Before acting, classify the task:

    line 31
  11. Distinctive:

    Use for small, clear tasks that do not benefit from packets.

    line 45
  12. Distinctive:

    Do the task directly.

    line 57
  13. Distinctive:

    Do not create workflow artifacts unless the user asks.

    line 58
  14. Distinctive:

    Verify with the narrowest useful check.

    line 59
  15. Distinctive:

    Use when the task has multiple phases, meaningful uncertainty, or enough risk to benefit from separated work packets.

    line 64
  16. Distinctive:

    Create a run directory using the run root rule below.

    line 76
  17. Very specific:

    Write plan.md, orchestration.md, state.json, packet files, result notes, integration.md, and final-report.md.

    line 77
  18. Very specific:

    Keep packet notes under results/.

    line 79
  19. Distinctive:

    Use when the host exposes native agent delegation, the task has independent packets, and delegation is permitted under that host's rules.

    line 84
  20. Distinctive:

    Create workflow artifacts before delegation.

    line 100
  21. Distinctive:

    Keep the immediate blocking task in the parent session.

    line 101
  22. Distinctive:

    Default to 2-4 sidecar agents for useful independent work.

    line 103
  23. Distinctive:

    Do not exceed 5 sidecar agents total across the run without explicit user approval.

    line 104
  24. Distinctive:

    Run at most one broad implementation wave and one review or verification wave unless the user approves more.

    line 105
  25. Distinctive:

    Prefer delegation for read-heavy exploration, tests, triage, and summarization.

    line 106
  26. Distinctive:

    Use write-heavy agents only when file ownership is disjoint and clear.

    line 107
  27. Distinctive:

    Wait only when a delegated result blocks the next parent step.

    line 111
  28. Distinctive:

    If native delegation is unavailable, fall back to workflow mode and say so briefly.

    line 114
  29. Distinctive:

    Use the native primitive exposed by the current host.

    line 118
  30. Distinctive:

    When running inside Codex and delegated mode is selected:

    line 129
  31. Very specific:

    Use Codex's native spawn_agent tool.

    line 131
  32. Very specific:

    When setting agent_type to explorer or worker, do not also request a full-history context fork.

    line 134
  33. Distinctive:

    Do not delegate the parent critical path or work needed for the next immediate decision.

    line 136
  34. Distinctive:

    Do not wait immediately after spawning unless the parent session is blocked on that result.

    line 137
  35. Very specific:

    If spawn_agent is available and the request invokes Ultracode or explicitly mentions agents, parallel work, delegation, a swarm, or …

    line 138
  36. Very specific:

    If spawn_agent is unavailable, permission is not clear, or no independent packet would benefit from an agent, use workflow mode with packet …

    line 139
  37. Distinctive:

    If project instructions name a different scratch or workflow directory, use that instead.

    line 146
  38. Very specific:

    Use .context/ultracode/ only when workspace instructions explicitly name .context/ as the scratch area.

    line 147
  39. Distinctive:

    Create optional heavy artifacts only when they reduce risk:

    line 174
  40. Very specific:

    Read references/packet-schema.md when filling packet files, result files, orchestration.md, or state.json.

    line 183
  41. Distinctive:

    Before splitting work, choose the smallest contract level:

    line 187
  42. Very specific:

    Read references/eval-contracts.md before creating a full contract.

    line 204
  43. Very specific:

    Keep plan.md concrete. Include:

    line 208
  44. Distinctive:

    Do not let the plan replace execution.

    line 225
  45. Very specific:

    Keep orchestration.md short and operational.

    line 229
  46. Distinctive:

    Use it as the execution contract, not as a transcript.

    line 239
  47. Distinctive:

    Before spawning or invoking another agent:

    line 243
  48. Distinctive:

    Avoid duplicating packet work across agents.

    line 249
  49. Distinctive:

    Never use delegation to avoid understanding the integration path.

    line 251
  50. Distinctive:

    Ask one clear approval question before:

    line 255
  51. Distinctive:

    If approval is missing, continue only with safe read-only work, local drafts, or non-destructive checks.

    line 265
  52. Very specific:

    Read references/approval-gates.md when risk is ambiguous.

    line 267
  53. Distinctive:

    update backend validation in named files

    line 283
  54. Distinctive:

    add tests for one module

    line 284
  55. Distinctive:

    Read-only agent prompt shape:

    line 300
  56. Distinctive:

    Write-capable agent prompt shape:

    line 325
  57. Distinctive:

    Check claimed file edits.

    line 362
  58. Distinctive:

    Check changed surfaces against the eval contract when one exists.

    line 363
  59. Distinctive:

    Never paste raw agent logs as the final answer.

    line 369
  60. Distinctive:

    run a targeted test if available

    line 378
  61. Distinctive:

    Verify declared deliverables exist or changed.

    line 397
  62. Distinctive:

    Run required checks or mark them as skipped with a reason.

    line 398
  63. Very specific:

    Put final audit evidence in final-report.md.

    line 400
  64. Very specific:

    Create final-audit.md for high-risk or full-contract runs.

    line 401
  65. Very specific:

    Keep the final answer shorter than final-report.md.

    line 407
  66. Very specific:

    Read references/packet-schema.md when creating packet files, result files, orchestration.md, or state.json.

    line 417
  67. Very specific:

    Read references/eval-contracts.md before full contracts or cross-surface delegation.

    line 418
  68. Very specific:

    Read references/approval-gates.md before risky or ambiguous work.

    line 419
  69. Very specific:

    Read references/execution-examples.md when mode behavior is unclear.

    line 420
  70. Very specific:

    Read references/forward-testing.md when testing or improving this skill.

    line 421

“Common” is measured: kept by at least 6 in 10 of the 4 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

Ultracode

Run a supervised workflow for work that needs planning, packetization, native agent delegation, integration, and verification.

This is a skill, not a runtime. It works by giving the current coding agent a disciplined operating procedure. It can be used in Codex, Claude Code, Antigravity, or another host that loads SKILL.md, but the host's own system rules and available tools always win.

Contract

  • Do not claim to be an official Claude, OpenAI, Google, or Antigravity feature.
  • Ultracode itself is just a skill: no bundled runtime, hidden runner, or required scripts.
  • Use task-specific tools exposed by the current host when the task needs them.
  • Create and update workflow artifacts directly as Markdown and JSON files.
  • Use native subagents when the current host exposes them, the task benefits from parallel work, and the user's request or host policy permits delegation.
  • Do not commit, push, publish, or deploy unless the user explicitly asks for that action.
  • Treat an explicit ultracode, $ultracode, or "ultra code" request as permission to choose delegated mode when the host allows that interpretation.
  • In Codex, prefer real spawn_agent for useful independent packets when the request clearly invokes Ultracode or otherwise asks for subagents, delegation, parallel agents, a swarm, or equivalent agent work.
  • For explicit Ultracode on a non-trivial task, delegated mode is the default when native agents exist and any independent sidecar work would help.
  • Choose no native agents only when the task is small, tightly coupled, lacks useful independent packets, needs the next blocking decision locally, native agents are unavailable, or the user restricts delegation.
  • In hosts with a different dynamic-workflow policy, follow that host's policy.
  • If a host policy requires separate delegation wording, do not fight it; use workflow mode and mention that native delegation was not permitted.

Use the smallest workflow that can prove the result. Do not create ceremony for small tasks.

First pass

Before acting, classify the task:

  • type: research, code change, bug fix, migration, audit, docs, design, QA, release
  • risk: low, medium, high
  • blast radius: single file, module, repo-wide, external system
  • verification: none, command, tests, build, browser, manual checklist
  • delegation: useful, not useful, allowed by host, blocked by environment

Then choose one mode.

Modes

Direct mode

Use for small, clear tasks that do not benefit from packets.

Examples:

  • answer a narrow question
  • inspect one file
  • run one command
  • fix one typo
  • change one small function

Behavior:

  • Do the task directly.
  • Do not create workflow artifacts unless the user asks.
  • Verify with the narrowest useful check.
  • Mention that full workflow was not needed only when useful.

Workflow mode

Use when the task has multiple phases, meaningful uncertainty, or enough risk to benefit from separated work packets.

Examples:

  • broad repo audit
  • research plus implementation plan
  • risky review where perspectives should stay separate
  • multi-step refactor
  • feature implementation with discovery, code changes, and verification

Behavior:

  • Create a run directory using the run root rule below.
  • Write plan.md, orchestration.md, state.json, packet files, result notes, integration.md, and final-report.md.
  • Execute packets as isolated passes in the parent session when delegation is unavailable or not permitted.
  • Keep packet notes under results/.
  • Integrate all packet results before final verification.

Delegated mode

Use when the host exposes native agent delegation, the task has independent packets, and delegation is permitted under that host's rules.

Strong delegation wording includes:

  • subagents
  • parallel agents
  • swarm
  • delegate or delegated workflow
  • multi-agent workflow
  • run agents
  • split this across agents

An explicit ultracode, $ultracode, or "ultra code" invocation can also be treated as delegation permission when the host allows the skill to choose its own workflow depth. If host policy is stricter, use workflow mode.

Behavior:

  • Create workflow artifacts before delegation.
  • Keep the immediate blocking task in the parent session.
  • Delegate only bounded sidecar work that can run in parallel.
  • Default to 2-4 sidecar agents for useful independent work.
  • Do not exceed 5 sidecar agents total across the run without explicit user approval.
  • Run at most one broad implementation wave and one review or verification wave unless the user approves more.
  • Prefer delegation for read-heavy exploration, tests, triage, and summarization.
  • Use write-heavy agents only when file ownership is disjoint and clear.
  • In Codex, use explorer agents for read-only questions and worker agents for concrete code changes when available.
  • In other hosts, use the closest native agent/task primitive.
  • Tell write-capable agents they are not alone in the codebase and must not revert edits made by others.
  • Wait only when a delegated result blocks the next parent step.
  • Integrate all results before final verification.

If native delegation is unavailable, fall back to workflow mode and say so briefly.

Host delegation primitives

Use the native primitive exposed by the current host. If the named primitive is unavailable in the current session, use workflow mode.

HostPreferred primitiveNotes
Codexspawn_agent, then wait_agent, send_input, or close_agent as neededUse explorer for read-only packets and worker for bounded write packets. Treat $ultracode as delegated-workflow intent when policy permits; if policy blocks delegation, fall back to workflow mode and say so.
Claude CodeNative Task/subagent or dynamic workflow tool, when exposedIf only the skill text is available, write packet artifacts and execute isolated parent-session passes.
AntigravityNative agent/task primitive, when exposedIf no delegation primitive is present, use workflow mode with packet artifacts.
Other hostsClosest native agent/task primitiveNever invent a runner. Fall back cleanly when no primitive exists.

Codex native delegation

When running inside Codex and delegated mode is selected:

  • Use Codex's native spawn_agent tool. Do not try to launch agents through Python, shell scripts, subprocesses, or local workflow files.
  • Spawn explorer agents for independent read-only discovery, tracing, risk review, test discovery, and verification planning.
  • Spawn worker agents only for bounded implementation packets with explicit, non-overlapping ownership.
  • When setting agent_type to explorer or worker, do not also request a full-history context fork. Use a self-contained prompt with the repo path and packet context, or omit agent_type when a full-history fork is required.
  • In every worker prompt, include: You are not alone in the codebase. Do not revert edits made by others. Adapt to nearby changes.
  • Do not delegate the parent critical path or work needed for the next immediate decision.
  • Do not wait immediately after spawning unless the parent session is blocked on that result.
  • If spawn_agent is available and the request invokes Ultracode or explicitly mentions agents, parallel work, delegation, a swarm, or splitting across agents, prefer real spawned agents over simulated packet passes whenever host policy permits it.
  • If spawn_agent is unavailable, permission is not clear, or no independent packet would benefit from an agent, use workflow mode with packet files and record the concrete no-delegation reason.

Workflow artifacts

Run root rule:

  • Default to .workflow/ultracode/.
  • If project instructions name a different scratch or workflow directory, use that instead.
  • Use .context/ultracode/ only when workspace instructions explicitly name .context/ as the scratch area.

Default run root:

.workflow/ultracode/

Workspace override, only when instructed:

.context/ultracode/

Run layout:

<run-root>/<slug>/
  plan.md
  orchestration.md
  state.json
  packets/
  results/
  integration.md
  final-report.md

Create optional heavy artifacts only when they reduce risk:

eval-contract.md    # full contract only
contracts/          # only when one packet produces a surface another consumes
handoffs/           # only when separate handoff files reduce integration risk
final-audit.md      # high-risk or full-contract runs

Read references/packet-schema.md when filling packet files, result files, orchestration.md, or state.json.

Eval contracts

Before splitting work, choose the smallest contract level:

  • none: tiny direct task.
  • inline: ordinary workflow or delegated task. Put 5-12 lines in plan.md.
  • full: high-risk, cross-surface, migration, public API/schema/CLI/UI flow/auth/data contract, or write-capable agents sharing integration surfaces.

Inline contract template:

Eval contract:
- Outcome:
- Shared surfaces:
- Required checks:
- Blocking conditions:
- Handoff evidence:

Read references/eval-contracts.md before creating a full contract.

Plan

Keep plan.md concrete. Include:

  • goal
  • success criteria
  • current context
  • constraints
  • risk level
  • approval gates
  • mode
  • work packets
  • eval contract
  • integration policy
  • verification plan
  • completion criteria

For non-trivial workflow mode after explicit Ultracode, include the concrete reason native agents were not used.

Do not let the plan replace execution.

Orchestration

Keep orchestration.md short and operational. Include:

  • parent critical path
  • packet list with owners
  • agents to spawn or invoke, if allowed
  • delegation count, wave count, and fallback reason
  • wait points
  • fallback if delegation is unavailable
  • verification order

Use it as the execution contract, not as a transcript.

Delegation policy

Before spawning or invoking another agent:

  • Identify the parent critical path and keep it local.
  • Confirm the delegated packet is bounded and non-blocking.
  • Assign explicit ownership.
  • State whether the packet is read-only or write-capable.
  • Avoid duplicating packet work across agents.

Never use delegation to avoid understanding the integration path.

Approval gates

Ask one clear approval question before:

  • deletion, overwrite, mass rename, or force push
  • publishing, deployment, emailing, or posting
  • production data changes
  • credentials, secrets, billing, or user accounts
  • broad codemods
  • expensive or long-running agent swarms
  • irreversible repository operations

If approval is missing, continue only with safe read-only work, local drafts, or non-destructive checks.

Read references/approval-gates.md when risk is ambiguous.

Packet design

Good packets are narrow, bounded, and evidence-based.

Good read-only packets:

  • find entry points for a feature
  • trace data flow from route to storage
  • find existing tests and fixtures
  • identify migration risk
  • compare current behavior with docs

Good write-capable packets:

  • update backend validation in named files
  • add tests for one module
  • update docs only
  • refactor one isolated adapter

Bad packets:

  • fix the whole thing
  • figure it out
  • implement everything
  • review whatever changed
  • edit any files you need

For code-edit packets, assign non-overlapping files or modules.

Agent prompts

Read-only agent prompt shape:

You are working in the same repo as other agents.

Task:
<specific read-only objective>

Do:
- inspect only the sources listed below unless one nearby hop is required
- cite file paths and line numbers where possible
- return concise findings with evidence

Do not:
- edit files
- run destructive commands
- duplicate other packet work

Expected output:
- summary
- evidence
- risks
- recommended parent action

Write-capable agent prompt shape:

You are not alone in the codebase. Other agents may edit other files.
Do not revert edits made by others. Adapt to nearby changes.

Ownership:
<files or module>

Task:
<specific implementation task>

Do:
- edit only the owned files unless blocked
- add or update focused tests if the owned area has tests
- list changed files in your final answer

Do not:
- change public behavior outside this packet
- run broad formatting over unrelated files
- rewrite unrelated code
- commit, push, publish, or deploy

Expected output:
- files changed
- summary
- verification run
- risks or blockers

Integration

The parent session owns integration.

After packet work:

  • Read each result.
  • Check claimed file edits.
  • Check changed surfaces against the eval contract when one exists.
  • Resolve disagreements using source files, tests, docs, or primary sources.
  • Reject outputs that lack evidence.
  • Update integration.md.
  • Update state.json.

Never paste raw agent logs as the final answer.

Verification

Choose checks by risk.

Low risk:

  • inspect diff
  • run a targeted test if available

Medium risk:

  • targeted tests
  • typecheck or lint
  • affected build

High risk:

  • full tests if practical
  • build
  • browser or CLI smoke
  • manual checklist
  • independent review pass

Final audit rules:

  • Re-read plan.md, orchestration.md, and the full contract when present.
  • Verify declared deliverables exist or changed.
  • Run required checks or mark them as skipped with a reason.
  • Mark checks as pass, fail, trust-prior, or skipped.
  • Put final audit evidence in final-report.md.
  • Create final-audit.md for high-risk or full-contract runs.

Report skipped checks honestly.

Final answer

Keep the final answer shorter than final-report.md. Include:

  • outcome
  • important files changed or artifacts created
  • verification run
  • skipped checks
  • remaining risk

References

  • Read references/packet-schema.md when creating packet files, result files, orchestration.md, or state.json.
  • Read references/eval-contracts.md before full contracts or cross-surface delegation.
  • Read references/approval-gates.md before risky or ambiguous work.
  • Read references/execution-examples.md when mode behavior is unclear.
  • Read references/forward-testing.md when testing or improving this skill.

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.