Provide a repeatable decision workflow to choose the right Codex primitive (Skill vs Custom Prompt vs Agent/automation) for any requested capability.. Use when Use this skill when the task matches its description and triggers..
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
name: decide-build-primitive description: "Provide a repeatable decision workflow to choose the right Codex primitive (Skill vs Custom Prompt vs Agent/automation) for any requested capability.. Use when Use this skill when the task matches its description and triggers.."
Decide Build Primitive
Compliance
- Check against GOLD Industry Standards guide in ~/.codex/AGENTS.override.md
- Check against GOLD Industry Standards guide in
~/.codex/AGENTS.override.md.
Purpose
Provide a repeatable decision workflow to choose the right Codex primitive (Skill vs Custom Prompt vs Agent/automation) for any requested capability.
When to run
- User asks how to implement/package/structure a capability in Codex.
- You need to choose between Skill, Custom Prompt, or autonomous Agent/
codex exec. - You want a reusable, cross-project decision framework.
Quick use
- Run the workflow below.
- Output must follow the required format block.
Decision workflow
Step 1 – Clarify (only ask what’s missing)
- What is being built? Inputs? Outputs? Where/when used?
- Required interaction model: interactive vs delegated vs autonomous?
- Any repo- or domain-specific constraints?
Step 2 – Evaluate axes
- Duration & Autonomy: <5m / 5–15m / 30m+; human-in-loop vs delegated vs autonomous.
- Context Sensitivity: Does prior chat/repo help? Is clean-slate required?
- Invocation Style: Should it be implicitly triggerable? Must it be explicitly invoked? Who drives execution?
- Complexity & Scope: Single capability vs multi-step workflow vs orchestration; number of decision points.
- Portability: Cross-project reusable vs repo-specific vs environment-bound.
- Output Needs: Guidance only vs documentation/artifacts vs code/diffs/CI outputs.
- Governance/CI Fit: Need for repeatable checks, packaging, or later automation hooks.
Step 3 – Decide
- Choose SKILL when: reusable across projects; methodology/checklist/decision logic; benefits from context; lightweight–moderate workflow; implicit triggering valuable.
- Choose CUSTOM_PROMPT when: personal/one-off macro; deterministic expansion; explicit invocation is fine; not intended for sharing/enforcement.
- Choose AGENT_AUTOMATION when: long-running or autonomous; clean isolation needed; produces structured artifacts/CI tasks; belongs in scripts/pipelines.
Step 4 – Output (strict format)
Return exactly:
DECISION: [SKILL | CUSTOM_PROMPT | AGENT_AUTOMATION]
PRIMARY REASON:
SUPPORTING FACTORS:
IMPLEMENTATION NOTES:
POTENTIAL HYBRID:
Step 5 – Follow-ups
- If AGENT_AUTOMATION: note entrypoint, guardrails, timeout/budget, logging/telemetry.
- If SKILL: outline triggers and any scripts/references/assets to include.
- If CUSTOM_PROMPT: note audience/scope and limitations.
References
references/contract.yaml— purpose, triggers, inputs/outputs, non-goals, risks.references/evals.yaml— evaluation cases to validate triggering and outputs.
When to use
- Use this skill when the task matches its description and triggers.
- If the request is outside scope, route to the referenced skill.
Inputs
- User request details and any relevant files/links.
Outputs
- A structured response or artifact appropriate to the skill.
- Include
schema_version: 1if outputs are contract-bound.
Constraints
- Redact secrets/PII by default.
- Avoid destructive operations without explicit user direction.
Validation
- Run any relevant checks or scripts when available.
- Fail fast and report errors before proceeding.
Philosophy
- Favor clarity, explicit tradeoffs, and verifiable outputs.
Anti-patterns
- Avoid vague guidance without concrete steps.
- Do not invent results or commands.
Procedure
- Clarify scope and inputs.
- Execute the core workflow.
- Summarize outputs and next steps.
Antipatterns
- Do not add features outside the agreed scope.
More by jscraik
View allTransform your web application from invisible to discoverable. This skill analyzes your codebase and implements comprehensive SEO optimizations that help search engines and social platforms understand, index, and surface your content.. Use when Use this skill when the task matches its description and triggers..
Scaffold and install codex-ui-kit assets and optional prompts in a repo. Use when adding codex-ui-kit to a project.
report_compiler: Summarize and compile multiple run findings into a single report with cross-run diffs and stable conclusions. Use when consolidating investigation outputs.
Prefer concise, verifiable instructions over comprehensive prose. Every command and path must be real and sourced from the repo. Treat AGENTS.md as an operator checklist: short, direct, and actionable.. Use when The user asks to create or update AGENTS.md..
