jnMetaCode/superpowers-zh / skills/diagnosing-superpowers
diagnosing-superpowers
Verified当一次 superpowers 会话出了问题、你的人类伙伴想知道原因时使用——重复劳动、无视计划、磕磕绊绊、结果质量差、某个技能没触发、"太慢了"、"为什么这么贵"、"它到底在干什么"——或者想给 superpowers 维护者整理一份 bug 报告;适用于当前会话,或按 id / 路径指定的过往会话,任何工具均可
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.2 KB |
| prompts/analyst-common.md | markdown | 1.6 KB |
| prompts/cost-and-time.md | markdown | 1.6 KB |
| prompts/plan-adherence.md | markdown | 1.7 KB |
| prompts/quality-evidence.md | markdown | 1.5 KB |
| prompts/repeated-work.md | markdown | 1.4 KB |
| prompts/request-conflicts.md | markdown | 974 B |
| prompts/scrub-audit.md | markdown | 1.3 KB |
| prompts/scrub.md | markdown | 1.4 KB |
| prompts/similar-session.md | markdown | 1.7 KB |
| prompts/skill-timeline.md | markdown | 1.6 KB |
| prompts/stumbles.md | markdown | 1.3 KB |
| references/context-safety.md | markdown | 979 B |
| references/github-issues.md | markdown | 2.4 KB |
| references/redaction-policy.md | markdown | 2.1 KB |
| references/session-discovery.md | markdown | 1.6 KB |
| templates/bundle-README.md | markdown | 3.5 KB |
| templates/case.md | markdown | 2.9 KB |
| templates/issue.md | markdown | 2.2 KB |
| templates/report.md | markdown | 2.4 KB |
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. **只读。** 绝不修改、移动或删除会话文件。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |