Przejdź do treści
Biblioteka skilli
AI i agenci · Pisanie

ctx-decision-add

/ctx-decision-add

Zapisuje decyzję architektoniczną, gdy rozstrzygnięto kompromis lub dokonano nieoczywistego wyboru projektowego, który przyszłe sesje powinny znać.

Repozytorium
ctx ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
18.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 18.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Zapisuje decyzję architektoniczną, gdy rozstrzygnięto kompromis lub dokonano nieoczywistego wyboru projektowego, który przyszłe sesje powinny znać.

Oryginalny opis (EN)

Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know.

Jak działa

  1. When to Use
  2. When NOT to Use
  3. Decision Formats
  4. Gathering Information
  5. Cross-Referencing
  6. Execution
  7. Authority boundary (vs other skills)
  8. Quality Checklist
Sekcje z nagłówków SKILL.md, w oryginale · 139 linii, 771 słów
Podgląd SKILL.md
---
name: ctx-decision-add
description: "Record architectural decision. Use when a trade-off is resolved or a non-obvious design choice is made that future sessions need to know."
allowed-tools: Bash(ctx:*)
---

Record an architectural decision in DECISIONS.md.

## When to Use

- After resolving a trade-off between alternatives
- When making a non-obvious design choice
- When the "why" behind a choice needs to be preserved
- When future sessions need to understand why something is the way it is

## When NOT to Use

- Minor implementation details (use code comments instead)
- Routine maintenance or bug fixes
- Configuration changes that don't affect architecture
- When there was no real alternative to consider

## Decision Formats

### Quick Format (Y-Statement)

For lightweight decisions, use a single statement:

> "In the context of **[situation]**, facing **[constraint]**, we decided for 
> **[choice]** and against **[alternatives]**, to achieve **[benefit]**, 
> accepting that **[trade-off]**."

Example:
> "In the context of needing a CLI framework, facing Go ecosystem options, 
> we decided for Cobra and against urfave/cli, to achieve better subcommand 
> support, accepting that it has more boilerplate."

### Full Format

For significant decisions, gather:

1. **Context**: What situation prompted this decision? What constraints exist?
2. **Alternatives**: What options were considered? (At least 2)
3. **Decision**: What was chosen?
4. **Rationale**: Why this choice over the alternatives?
5. **Consequence**: What changes as a result? (Both positive and negative)

## Gathering Information

If the user provides only a title, ask:

1. "What prompted this decision?" → Context
2. "What alternatives did you consider?" → Options
3. "Why this choice over the alternatives?" → Rationale
4. "What are the consequences (good and bad)?" → Consequence

For quick decisions, offer the Y-statement format instead.

## Cross-Referencing

When a decision **supersedes** an earlier one:
- Mark the old decision as "Superseded by [new decision]"
- Reference the old decision in the new one
- Capture lessons learned from the original decision

When decisions are **related**:
- Note "See also: [related decision]" in consequences

## Execution

Provenance flags (`--session-id`, `--branch`, `--commit`) are **required**.
Get these values from the hook-relayed provenance line in your context
(e.g., `Session: abc12345 | Branch: main @ 68fbc00a`).

**Prefer this skill over raw `ctx decision add`**: the conversational
approach lets you automatically pick up session ID, branch, and commit
from the provenance line already in your context window.

**Quick format:**
```bash
ctx decision add "Use Cobra for CLI framework" \
  --session-id abc12345 --branch main --commit 68fbc00a \
  --context "Need CLI framework for Go project" \
  --rationale "Better subcommand support than urfave/cli, team familiarity" \
  --consequence "More boilerplate, but clearer command structure"
```

**Full format with alternatives:**
```bash
ctx decision add "Use PostgreSQL for primary database" \
  --session-id abc12345 --branch main --commit 68fbc00a \
  --context "Need ACID-compliant database for e-commerce transactions" \
  --rationale "PostgreSQL offers JSONB, full-text search, and team has experience. Chose over MySQL (weaker JSON) and MongoDB (no multi-doc ACID)." \
  --consequence "Single database handles transactions and search. Team needs PostgreSQL-specific training."
```

**When a flag value would be denied:** if a `--rationale`/`--context`/
`--consequence` value contains a substring that trips a `permissions.deny`
rule on the literal command string (e.g. a path like ` /usr/local/bin`),
move the fields into a JSON file and pass `--json-file` instead — the
values never appear on the command line. The schema gates (placeholder
rejection, required fields, index maintenance) still apply.

```bash
cat > /tmp/decision.json <<'EOF'
{
  "title": "Install ctx into the system PATH",
  "context": "agents invoke ctx by bare name",
  "rationale": "the binary belongs at /usr/local/bin so it is on PATH",
  "consequence": "ctx resolves from any working directory",
  "provenance": {"session_id": "abc12345", "branch": "main", "commit": "68fbc00a"}
}
EOF
ctx decision add --json-file /tmp/decision.json
```

## Authority boundary (vs other skills)

This skill records architectural decisions — moments where a
trade-off between alternatives was deliberately resolved. It does
not unilaterally promote material from adjacent skills:

- **Do not promote a learning into a decision.** A gotcha or
  debugging insight is a learning; if the user wants it elevated
  to a decision, they must say so. Pattern-cross-promotion drifts
  the file's authority over time.
- **Do not promote a handover or wrap-up note into a decision.**
  Session-end summaries can mention decisions, but those decisions
  must have been captured at the time they were made. Backfilling
  silently rewrites the trade-off record.
- **Do not invent alternatives.** If the user did not consider an
  alternative, do not fabricate one to fill the section. Ask, or
  use the Y-statement format that does not require alternatives.

Light compression for clarity is allowed; new facts are not.

## Quality Checklist

Before recording, verify:
- [ ] Context explains the problem clearly
- [ ] At least one alternative was considered
- [ ] Rationale addresses why alternatives were rejected
- [ ] Consequence includes both benefits and trade-offs

Wersje

W bazie nie ma innych skilli o nazwie ctx-decision-add.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 9d34c66ae806 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ctx-add-decision
    Zapisuje decyzję architektoniczną, gdy rozstrzygnięto kompromis lub dokonano nieoczywistego wyboru projektowego, który przyszłe sesje powinny znać.
  • 100ctx-learning-add
    Zapisuje wnioski z odkrytych pułapek, błędów i nieoczekiwanego zachowania, aby przyszłe sesje o nich wiedziały.
  • 96remember
    Zapisuje na przyszłe sesje to, o co użytkownik prosi, np. pułapkę, decyzję albo konwencję.
  • 100lean-ctx-review
    Ocenia działanie narzędzi MCP ctx_* z lean-ctx w bieżącej sesji i zgłasza upstream potwierdzone problemy, w tym awarie lub powroty do natywnych narzędzi.
  • 100ctx
    Wykorzystuje ctx jako pamięć roboczą wcześniejszej pracy agentów: przeszukuje poprzednie sesje i śledzi linię, plik, commit lub PR do sesji, która je wytworzyła.
  • 100ctx-lint
    Waliduje importy @ we wszystkich plikach AGENTS.md ctx: znajduje zepsute linki i brakujące znaczniki końca, z automatyczną poprawą prostych problemów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.