askill
decide-build-primitive

decide-build-primitiveSafety 90Repository

Analyze and decide the right Codex primitive (Skill, Custom Prompt, or Agent automation) for a capability. Use this when you need to plan how to package or automate a workflow.

2 stars
1.2k downloads
Updated 3/16/2026

Package Files

Loading files...
SKILL.md

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

  1. Run the workflow below.
  2. 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.

Scope and triggers

  • Use this skill when the task matches its description and triggers.
  • If the request is outside scope, route to the referenced skill.

Required inputs

  • User request details and any relevant files/links.

Deliverables

  • A structured response or artifact appropriate to the skill.
  • Include schema_version: 1 if 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

  1. Clarify scope and inputs.
  2. Execute the core workflow.
  3. Summarize outputs and next steps.

Antipatterns

  • Do not add features outside the agreed scope.

Examples

  • "Should this be a Skill or a custom prompt?"
  • "Choose between agent automation vs skill for a long-running workflow."

Variation

  • Vary tone, depth, and structure based on context.
  • Avoid repeating the same outline across outputs.

Remember

The agent is capable of extraordinary work in this domain. Use judgment, adapt to context, and push boundaries when appropriate.

Philosophy and tradeoffs

  • Use this skill when consistent decision-making matters more than one-off execution because project context should drive the approach.
  • Principle and mindset: prioritize tradeoffs and constraints over rigid checklists; understand why each step exists.
  • Ask this to keep outcomes robust: Why is this the right default, and what could change this outcome?
  • How do we adapt if constraints shift?
  • What evidence is needed before choosing one path over another?

Anti-patterns and caveats

  • Avoid applying this playbook generically without checking repository-specific context.
  • NEVER skip required validation gates when behavior changes.
  • DO NOT use this skill as a rigid replacement for engineering judgment.
  • DON'T ignore warnings or assume one pattern fits all repos.
  • Common pitfall: treating anti-patterns as optional.
  • Incorrect assumptions here can lead to fragile guidance.
  • Warning: wrong sequencing can create avoidable regressions.

Variation and adaptation

  • Vary the workflow by team size, risk, and deployment target.
  • Use different strategies for small, medium, and large changes.
  • Adapt recommendations to the specific environment and avoid repetitive templates.
  • Avoid generic or cookie-cutter responses; craft context-specific alternatives.
  • Keep outputs diverse and not repetitive.
  • Converge on a custom path only after evidence review.
  • Different constraints should produce different, non-generic recommendations.

Empowering execution style

  • Be capable of exploring multiple options and enabling the team to make safe decisions.
  • Unlock confidence by explaining options and tradeoffs clearly.
  • Feel free to be creative while staying rigorous and precise.
  • Push boundaries with practical alternatives when simple recipes fail.
  • Enable outcomes-oriented problem solving.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

89/100Analyzed 2/24/2026

High-quality decision framework skill for choosing between Codex primitives (Skill, Custom Prompt, Agent automation). Provides clear step-by-step workflow with evaluation axes, decision criteria, and strict output format. Well-structured with comprehensive coverage including purpose, triggers, references, and examples. Minor redundancy (Compliance/Anti-patterns repeated) but overall excellent actionability and reusability. Tags enhance discoverability. Appropriate for cross-project use.

90
85
92
90
90

Metadata

Licenseunknown
Version-
Updated3/16/2026
Publisherjscraik

Tags

ci-cdgithub-actionsobservabilityprompting