Skip to content
Back to skills

Decision First

ASecurity

Makes an architectural / project / scope decision using a 5-part model INSTEAD of asking the user. Structure: ๐ŸŽฏ Decision / Why / ๐Ÿ›ก Security / ๐Ÿ“ˆ Scalability / Alternatives / Plain-language analogy. 1 question = 1 atomic artifact. Use when: the agent is about to ask an architectural / scope question; "/decision-first", "decide it yourself", "apply the decision model"

  • 19 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
ai-agentsgobashsqlsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add bearded-illirian/trailmark --skill decision-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Decision First?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Decision First
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/bearded-illirian-decision-first/badge)](https://www.skillsdirectory.com/skills/bearded-illirian-decision-first)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: decision-first
description: |
  Makes an architectural / project / scope decision using a 5-part model
  INSTEAD of asking the user. Structure: ๐ŸŽฏ Decision / Why / ๐Ÿ›ก Security /
  ๐Ÿ“ˆ Scalability / Alternatives / Plain-language analogy.
  1 question = 1 atomic artifact.

  Use when: the agent is about to ask an architectural / scope question;
  "/decision-first", "decide it yourself", "apply the decision model"
---

# Decision-First Protocol

Makes a decision **on behalf of** the user via a 5-section model with full reasoning and alternatives. Invoked whenever the agent is about to ask an architectural / project / scope question โ€” instead of asking, the skill is called.

**Core idea:** the user prefers autonomous decisions with transparent reasoning over back-and-forth Q&A. A decision can be contested post-hoc (round 2) โ€” cheaper than a synchronous pause-and-ask.

**When to call:** exists **2+ reasonable alternatives** and a justified selection is required. If one option is obviously correct โ€” do not call, just act.

## Input

An ambiguous architectural, scope, or design question the agent is about to ask the user.

## Output

`decision-{NN}.md` capturing the choice via a 5-part model (๐ŸŽฏ Decision / Why / ๐Ÿ›ก Safety / ๐Ÿ“ˆ Scalability / Alternatives / In plain language).

## Hands off to

Returns control to the calling skill (typically `arch-first`, `plan-first`, or `library-first`).

---

## Step 0 โ€” Task context

Ensure `{log_dir}` and `{slug}` are known. Otherwise resolve from the latest task log folder.

---

## Step 1 โ€” Identify decision(s)

**Auto-mode** โ€” pick the last unresolved question from the current conversation. If related questions cluster (e.g. "flatten + format" = 2 decisions) โ€” handle all in one invocation, one artifact per decision.

**Manual mode** (`/decision-first`) โ€” either process the questions the user described, or ask "which questions?".

**Cutoff:** obvious choice โ†’ skip the skill, just act.

---

## Step 2 โ€” Apply the 5-section model

Per decision:

```markdown
# D{N} โ€” {short title}

๐ŸŽฏ **Decision:** {chosen option in one sentence}

**Why this option:**
- {specific reason 1}
- {specific reason 2}

**๐Ÿ›ก Security:** {security analysis. If N/A โ€” explicit `not applicable`}

**๐Ÿ“ˆ Scalability:** {scaling impact. If N/A โ€” explicit `not applicable`}

| Alternative | Why rejected |
|---|---|
| {option 1} | {concrete drawback} |
| {option 2} | {concrete drawback} |

**Plain-language analogy:** {real-world analogy without technical jargon}
```

Rules:
- ๐ŸŽฏ Decision โ€” one sentence, no "possibly X"
- Why โ€” 2 to 5 concrete reasons
- ๐Ÿ›ก Security + ๐Ÿ“ˆ Scalability โ€” always present (even if `not applicable` with rationale)
- At least 2 real alternatives (no straw men)
- Analogy โ€” from real life (warehouse / shop / kitchen)

---

## Step 3 โ€” Numbering

Per-task auto-numbering scoped to `{log_dir}`:

```bash
NEXT_NN=$(( $(ls "{log_dir}"/decision-*.md 2>/dev/null | wc -l) + 1 ))
```

Format `decision-{NN}.md` (zero-padded). Retry โ†’ `decision-{NN}.R2.md`.

---

## Step 4 โ€” Write and register

Each decision = one file `{log_dir}/decision-{NN}.md`. Add a row to `task.md` `## Task files` section + a link block at the end.

Register in `task_artifacts` (one row per decision):

```bash
sqlite3 {routing_db} \
  "INSERT INTO task_artifacts
     (task_id, block_num, round_num, artifact_type, file_name, file_path, created_by, created_at)
   VALUES ('{slug}', {block_num or NULL}, 1, 'decision', 'decision-{NN}.md',
           '{log_dir}/decision-{NN}.md', 'decision-first', '{date}');"
```

---

## Step 5 โ€” Output summary

Group decisions inline in chat:

```
โœ… Decision-first โ€” N decisions taken:

[D{NN}] ๐ŸŽฏ {chosen} โ€” {1-line reasoning}
[D{NN+1}] ๐ŸŽฏ {chosen} โ€” {1-line reasoning}
```

After output โ€” **continue working**. Do not wait for approval (user objects โ†’ "rewrite D{NN}" triggers round 2).

---

## Principles

1. **Do not ask** โ€” call the skill instead of asking the user
2. **All 5 sections mandatory** โ€” even `not applicable` must be explicit
3. **Real alternatives only** โ€” no straw men
4. **Analogy mandatory** โ€” makes the decision accessible to non-technical stakeholders
5. **1 question = 1 artifact** โ€” for analytics and typing
6. **Flag unknowns** โ€” insufficient data โ†’ mark as `โš ๏ธ requires validation`

---

## Anti-patterns

### โŒ Asking a question instead of the skill
2+ alternatives + no clear winner โ†’ call the skill. Do not ask.

### โŒ Skipping Security or Scalability
UI/cosmetic doesn't excuse silence. Write `not applicable` with a reason.

### โŒ Straw-man alternatives
Alternatives must be viable choices in the same value system.

### โŒ Silent choice under insufficient data
Explicitly flag `โš ๏ธ requires validation` โ€” do not hide the uncertainty.

### โŒ Bundling multiple decisions in one file
1 question = 1 file = 1 row in task_artifacts. Group visually in chat only.

### โŒ Inlining instead of `Skill()`
Always via the Skill tool โ€” otherwise version drift + no artifact registration.

---

## Example โ€” reference decision (public form)

```markdown
# D1 โ€” `producer_id` in draft: denormalize or JOIN?

๐ŸŽฏ **Decision:** denormalize โ€” copy `producer_id` from source into draft at INSERT.

**Why this option:**
- Analytics queries filter by producer often. JOIN on millions of rows is slow.
- INTEGER (4 bytes) โ€” cheap in storage.
- Source is immutable after processing โ€” single source of truth preserved.

**๐Ÿ›ก Security:** validated by the catalog FK trigger at INSERT โ€” no forgery. Deactivating the producer blocks new INSERTs, keeps old audit trail.

**๐Ÿ“ˆ Scalability:** 1M rows โ†’ SELECT without JOIN = O(log n) with an index. With JOIN โ€” double scan. On 10M rows โ€” seconds vs milliseconds.

| Alternative | Why rejected |
|---|---|
| JOIN on every analytics | Degrades on large volumes |
| Materialized view | SQLite has no MV. VIEW = same JOIN under the hood |
| Periodic refresh job | Sync complexity. Denormalization at INSERT is simpler |

**Plain-language analogy:** imagine an archive of invoices. Storing only supplier id โ†’ building a report by supplier is slow (JOIN with registry). Storing a small copy of the supplier label right next to the invoice โ†’ report is instant. Registry updates don't affect the archive because the archive is history, not the present.
```

---

## Related skills

- **plan-first** โ€” plans execution steps (after decisions are made)
- **note-first** โ€” saves a free-form note (after user request)
- **arch-first** โ€” multi-block architectural tasks (invokes decision-first at forks)

Files in this skill

  • INFO.md2.6 KB
  • SKILL.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents โ†’

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.