AGENT SKILL

决策调查工单映射

decision-mapping

将松散的想法转化为按序排列的调查工单地图,然后逐一推动它们得到解决。

License 许可
MIT
所属仓库
pi-ohm/pi-ohm
最近更新
2026-06-24
Stars
★ 2
Forks
1

01 前言 Front Matter

name
decision-mapping
description
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
disable-model-invocation
true

03 SKILL.md 正文

This skill is invoked when a loose idea requires more than one agent session to turn into a plan. It creates a stateful decision map in a markdown file, and drives the user through a sequence of tickets to resolve the open questions - which may require either prototyping, research or discussion.

The Decision Map

The decision map is a single compact Markdown file, one per planning effort, git-tracked alongside the project. It is the canonical artifact — the whole map is loaded as context into every session, so it must stay compact.

Assets created during tickets should be linked to from the map, not duplicated within it.

Structure

Numbered entries ("tickets"), each its own section keyed by its number:

## #1: Relational Or Non-Relational Database?

Blocked by: #<ticket-number>, #<ticket-number>
Type: Research | Prototype | Discuss

### Question

<question-here>

### Answer

<answer-here>

Each ticket must be sized to one 100K token agent session.

Ticket Types

There are three types of tickets:

  • Research: Reading documentation, third-party API's, or local resources like knowledge bases. Creates a markdown summary as an asset. Use this when knowledge outside the current working directory is required.
  • Prototype: Writing UI or logic code to test a hypothesis, or to explore a design space. Uses the /prototype skill. Creates a prototype as an asset. Use this when "how should it look" or "how should it behave" is the key question.
  • Discuss: Conversation with the agent. Uses the /grilling and /domain-modelling skills. The default case.

Fog of war

The map is deliberately incomplete beyond the frontier. Your job is to investigate the frontier, and to resolve tickets in order to push the frontier forward. Push back the fog of war, one node at a time.

At some point, the fog of war should have been pushed back far enough that the path to the finish line is clear. At that point, no more tickets will be required and the decision map can be considered 'done'.

Invocation

There are two ways this skill can be invoked: bootstrap and resume.

Bootstrap

User invokes with a loose idea.

  1. Run a /grilling and /domain-modelling session to surface the open decisions.
  2. Write a new decision map — mostly fog, frontier identified, trivially-decidable entries resolved inline.
  3. Stop. Map-building is one session's work; do not also resolve tickets.

Resume

User invokes with a path to an existing map and a ticket number.

  1. Load the whole map as context.
  2. Run a session to resolve the ticket, invoking skills as needed. If in doubt, use /grilling and /domain-modelling.
  3. Record what the session resolved in the ticket's body.
  4. Add newly-discovered tickets (with correct blocked_by edges).
  5. Stop.

If the decisions made invalidate other parts of the map, update or delete those nodes.

Parallelism

The user may choose to run tickets in parallel, so expect other agents to make changes to the map.

Skipping The Decision Map

Many times, the initial grilling will result in no fog of war. No unresolved tickets. Nothing to do, except implement.

In those situations, you should offer the user the chance to skip the decision map - since the decision map is only needed if multi-session decisions need to be made.

If they skip it, you should recommend either implementing directly or using /to-prd to schedule a multi-session implementation.

04 同仓库更多 Skills

pi-ohm
pi-ohm/pi-ohm

tuistory

Playwright for terminal apps. Like tmux but designed for agents — virtual terminals you can type into, press keys, wait for text, take snapshots, and screenshot as images. tuistory has **2 modes**: - **CLI** (`tuistory` command) — shell-based. Launch sessions, type, press keys, snapshot, screenshot. Runs a background daemon that persists sessions across commands. Install globally or use `npx`/`bunx`. **You MUST run `tuistory --help` before using the CLI** to see the latest commands and options. - **JS/TS API** (`import { launchTerminal } from 'tuistory'`) — programmatic. Use in vitest/bun:test to write Playwright-style tests for CLIs and TUIs with inline snapshots. Use tuistory when you need to: - Write e2e tests for CLI/TUI apps (vitest, bun:test) with inline snapshots - Automate terminal interactions (launch a REPL, debugger, or TUI and drive it) - Screenshot terminal as images to send to users (Discord bots, agent UIs like kimaki/openclaw) - Reproduce bugs in interactive CLIs by scripting the exact steps - Explore TUI apps progressively with observe-act-observe loops

★ 2
pi-ohm
pi-ohm/pi-ohm

better-result

Adopt better-result in an existing TypeScript codebase. Use when replacing try/catch, Promise rejection handling, null sentinels, or thrown domain exceptions with typed Result workflows.

★ 2
pi-ohm
pi-ohm/pi-ohm

tsdown

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.

★ 2
pi-ohm
pi-ohm/pi-ohm

improve-codebase-architecture

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

★ 2
pi-ohm
pi-ohm/pi-ohm

grilling

Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.

★ 2
pi-ohm
pi-ohm/pi-ohm

grill-me

A relentless interview to sharpen a plan or design.

★ 2