Skip to content

jnMetaCode/superpowers-zh / skills/diagnosing-superpowers

diagnosing-superpowers

Verified

当一次 superpowers 会话出了问题、你的人类伙伴想知道原因时使用——重复劳动、无视计划、磕磕绊绊、结果质量差、某个技能没触发、"太慢了"、"为什么这么贵"、"它到底在干什么"——或者想给 superpowers 维护者整理一份 bug 报告;适用于当前会话,或按 id / 路径指定的过往会话,任何工具均可

references/context-safety.md

View on GitHub
# 会话记录的上下文安全

一条会话记录可能超过一兆字节,或者内嵌整段历史。把一整条记录打印出来,就可能撑爆
正在做诊断的那个会话的上下文。每一个读取会话文件的人——控制者或子智能体——对每个文件、
每一次都遵循这些规则。

1. **先度量再读取。**

   ```bash
   wc -lc "$F"
   awk '{ if (length($0) > 100000) print NR, length($0) }' "$F"   # long lines
   ```

2. **绝不用 `cat` 或 `grep` 取内容。** 先拿行号和计数
   (`grep -n … | cut -d: -f1`、`jq -r '.type' | sort | uniq -c`),
   再从具体的行中取小字段(`sed -n Np | jq -c '{…}'` 或 `| cut -c1-500`)。
   对眼前的这个来源,使用发现阶段确立的字段提取命令。
3. **超过 500 个字符就收窄。** 如果一条命令对一条记录返回了超过 500 个字符,
   收紧字段或切片。
4. **只读。** 绝不修改、移动或删除会话文件。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall