decision-loop

decision-loop is a skill for Codex from PANGKAIFENG/ai-product-manager-skills. It costs 82 tokens per session (573 once invoked), scanned A, original, MIT.

A bounded decision process for resolving one clearly defined product or technical choice using evidence, with up to three research rounds.

In plain words
What is it for?
Use it to compare options, close a specific evidence gap, update a recommendation and confidence level, and record what would change the decision.
Why use it?
It prevents research from expanding without end and makes clear when evidence is sufficient, when the choice is blocked, or when a person must decide.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to compare options, close a specific evidence gap, update a recommendation and confidence level, and record what would change the decision.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pangkaifeng/ai-product-manager-skills/decision-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PANGKAIFENG/ai-product-manager-skills --skill decision-loop
Clone the repo
git clone --depth 1 https://github.com/PANGKAIFENG/ai-product-manager-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for decision-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/pangkaifeng/ai-product-manager-skills/decision-loop/github.svg)](https://agentmods.dev/skills/pangkaifeng/ai-product-manager-skills/decision-loop)
Your own site
<a href="https://agentmods.dev/skills/pangkaifeng/ai-product-manager-skills/decision-loop"><img src="https://agentmods.dev/badge/skills/pangkaifeng/ai-product-manager-skills/decision-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for decision-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/pangkaifeng/ai-product-manager-skills/decision-loop"><img src="https://agentmods.dev/badge/skills/pangkaifeng/ai-product-manager-skills/decision-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.00573
Opus 5 $0.00041 $0.00287
Sonnet 5 $0.00016 $0.00115
Haiku 4.5 $0.00008 $0.00057

Measured 12d ago against content hash c52069e50bd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

decision-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

loops/decision-loop/SKILL.md · 43 lines

What it actually says

决策闭环

这是 loop 的 Codex Runtime 入口,不是新的研究 Skill。先读取同目录 LOOP.md,再使用现有 research-topic-compilerdecision-research 关闭一个具体决策。

目标与输入

目标是关闭一个具体决策,而不是扩张研究范围。Entry Gate 开始前必须有:

  • 一个明确的 decision_question
  • 当前候选项或判断方向;
  • 会影响结论的证据缺口;
  • gap 的关闭条件。

如果用户只是想系统理解一个领域,使用 research-topic-compiler。如果问题本身还未定义,使用 ai-collaboration-calibration

工作流

  1. 建立或恢复 LOOP.md 定义的状态,max_cycles 固定为 3。
  2. 使用 decision-research 判断当前推荐、置信度和唯一 material gap。
  3. 只有 gap 同时可研究、可关闭且会改变决策时,才使用 research-topic-compiler 获取 Evidence Delta。
  4. 把 Evidence Delta 交回 decision-research 更新推荐;不允许 Research 自己宣布决策完成。
  5. 满足关闭条件时输出 decision_ready;达到停止条件时输出 human_gateblocked

输出

每轮返回 cycle、决策问题、当前推荐、置信度、active gap、Evidence Delta、保留项、状态和恢复点。不要复制已有研究全文,也不要发起任何外部写入。

完成定义

只有 closure criterion 已被新证据满足且 decision-research 更新了推荐、置信度和颠覆条件,才输出 decision_ready。三轮上限、连续两轮无有效 Evidence Delta 或业务取舍不可推断时进入 Human Gate。

资源与验证

  • LOOP.md 是状态字段、轮次和停止条件的权威合同,每次执行或恢复前读取。
  • evals/evals.json 覆盖证据 gap、cycle 2 恢复、开放式研究分流和业务取舍回归;修改入口后运行这些评测并保留结果。
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 43 lines · 82 tokens per session scan A c52069e50bd7

Subscribe to this mod's changes

decision-loop is a skill published in the GitHub repository PANGKAIFENG/ai-product-manager-skills (11 stars, last pushed 13d ago), licensed MIT. It adds 82 tokens to every session and 573 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

baoyu-comic

A tool for creating original educational comics that explain knowledge or ideas through multiple illustrated panels. It supports different art styles and tones and can create several comics in one batch.

JimLiu/baoyu-skills · 61 tokens

baoyu-diagram

Create professional, dark-themed SVG diagrams of any type — architecture diagrams, flowcharts, sequence diagrams, structural diagrams, mind maps, timelines, illustrative/conceptual diagrams, and more. Use this skill whenever the user asks for any kind of technical or conceptual diagram, visualization of a system…

JimLiu/baoyu-skills · 146 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens

agent-wiki

Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.

Dianel555/DSkills · 89 tokens

sequential-think

Multi-step reasoning engine for complex analysis and systematic problem solving. Use when: (1) Complex debugging scenarios with multiple layers, (2) Architectural analysis and system design, (3) Problems requiring hypothesis testing and validation, (4) Multi-component failure investigation, (5) Performance bottleneck…

Dianel555/DSkills · 110 tokens