agentleFS
bordenetbordenet/superpowers-plus/skills/experimental/experimental-self-prompting/skill.md

experimental-self-prompting

Skill8 starsChanged 7 months agoMITView on GitHub

⚠️ EXPERIMENTAL - Write comprehensive context-free prompts before analyzing code. Validated in 20-round experiment but NOT production-ready. Always verify outputs manually.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When re-reading the same context isn't yielding new insights

    line 36
  2. Distinctive:

    Winner: Condition B (Reframe-Self): - Write prompt, answer yourself (no external model)

    line 40
  3. Distinctive:

    Every single round had at least one false positive.

    line 57
  4. Distinctive:

    Always verify findings: before acting on them.

    line 63
  5. Distinctive:

    Create a context-free prompt that any engineer could pick up cold:

    line 96
  6. Distinctive:

    Treat the prompt as if you've never seen the code before.

    line 125
  7. Distinctive:

    CRITICAL: Never trust findings without verification.

    line 129
  8. Distinctive:

    Run grep/view command to confirm existence

    line 133
  9. Distinctive:

    Run node test to confirm behavior (if applicable)

    line 134
  10. Distinctive:

    False positive rate ~20%: - Not yet reduced to target <15%

    line 147
  11. Distinctive:

    Limited codebase testing: - Only 5 genesis-tools projects

    line 148

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

⚠️ EXPERIMENTAL: Self-Prompting ⚠️

Wrong skill? Getting unstuck → think-twice. Research → perplexity-research. Brainstorming → brainstorming.

WARNING: This skill is EXPERIMENTAL. It has been validated in a controlled experiment but is NOT production-ready. Expect ~20% false positive rate. ALWAYS verify outputs manually before acting on findings.

When to Use

  • Analysis has stalled due to context window pollution
  • You suspect anchoring bias from earlier conversation
  • Fresh perspective needed on a complex problem
  • When re-reading the same context isn't yielding new insights

Experiment Results Summary

Winner: Condition B (Reframe-Self) - Write prompt, answer yourself (no external model)

ConditionVHHRAvg VH/RoundHR Rate
A: Direct1913.820%
B: Reframe-Self2114.220% ← WINNER
C: Direct-External2344.680%
D: Reframe-External1863.6100% ← WORST

Key Insight: Reframing helps Claude (+10% VH), but HURTS external models (+400% HR).

⚠️ CRITICAL WARNINGS ⚠️

1. DO NOT Use with External Models

Condition D (reframe + Gemini) had 100% hallucination rate.

Every single round had at least one false positive. The detailed prompts give external models more rope to hallucinate confidently.

2. Expect ~20% False Positive Rate

Even with Claude answering its own prompts, expect 1 in 5 findings to be wrong. Always verify findings before acting on them.

3. Only Tested on Genesis-Tools

This skill was validated on 5 genesis-tools projects:

  • pr-faq-assistant
  • jd-assistant
  • one-pager
  • business-justification-assistant
  • product-requirements-assistant

It may not generalize to other codebases.

When to Invoke

TriggerDescription
Complex system reviewMulti-component systems with alignment concerns
Adversarial analysisLooking for gaming vulnerabilities or edge cases
Independent verificationVerify claims from external sources (Gemini, GPT)
Pre-commit reviewFinal check before major commits

Explicit invocation required:

Use the experimental-self-prompting skill to analyze [system]

The Protocol (Condition B)

Step 1: Write Comprehensive Prompt

Create a context-free prompt that any engineer could pick up cold:

You are an expert [ROLE] performing [TASK TYPE] on [SYSTEM].

## CONTEXT
[Explain the system, its components, and their relationships]

## THE PROBLEM
[What misalignment/issue pattern you're looking for]

## YOUR TASK
[Specific things to check]

## VERIFICATION REQUIREMENTS
For EACH finding:
1. State the claim
2. Cite exact file and line number
3. Show evidence (grep/code)
4. Categorize: VERIFIED | FALSE POSITIVE | NEEDS INVESTIGATION

## FILES TO EXAMINE
[List specific files with full paths]

Focus on ACTIONABLE findings with EVIDENCE. No speculation.

Step 2: Read It Back Cold

Treat the prompt as if you've never seen the code before. Answer systematically.

Step 3: Verify EVERY Finding

CRITICAL: Never trust findings without verification.

For each finding:

  1. Run grep/view command to confirm existence
  2. Run node test to confirm behavior (if applicable)
  3. Mark as VERIFIED (VH) or FALSE POSITIVE (HR)

Step 4: Document Results

Create summary with:

  • VH count (verified hits)
  • HR count (hallucinations)
  • Key findings with evidence

Known Issues

  1. False positive rate ~20% - Not yet reduced to target <15%
  2. Limited codebase testing - Only 5 genesis-tools projects
  3. No automated verification - Manual grep/test required
  4. Prompt templates not optimized - May miss issues or over-flag

Graduation Criteria

This skill will be promoted to production when:

  • Tested on 10+ diverse codebases
  • False positive rate consistently <15%
  • Automated verification pipeline integrated
  • User feedback loop established
  • Prompt templates optimized and documented

Reference

  • Full experiment: superpowers-plus/docs/plans/experiment-results-v2/
  • Statistical analysis: superpowers-plus/docs/plans/experiment-results-v2/STATISTICAL_ANALYSIS.md
  • Skill comparison: superpowers-plus/docs/SKILL_COMPARISON_self-prompting_vs_think-twice.md

Example

# Generate a context-free prompt for fresh analysis
echo "Analyze this codebase for [specific concern].
Constraints: [list constraints].
Output format: [specify format].
Do NOT reference prior analysis." > /tmp/self-prompt.md

Failure Modes

  • Infinite self-prompting loop: Agent generates prompts that trigger more self-prompts — set a maximum depth (3 rounds)
  • Prompt drift: Self-generated prompts gradually diverge from the original goal — anchor each round to the user's request
  • Overhead without value: Some tasks don't benefit from self-prompting — simple factual lookups, mechanical edits

Companion Skills

  • think-twice: For stuck loops (production-ready alternative)
  • brainstorming: For generating ideas (production-ready alternative)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.