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.
In this repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requesting-code-reviewSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- The first 60 shown.
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
- Distinctive: line 36
When re-reading the same context isn't yielding new insights
- Distinctive: line 40
Winner: Condition B (Reframe-Self): - Write prompt, answer yourself (no external model)
- Distinctive: line 57
Every single round had at least one false positive.
- Distinctive: line 63
Always verify findings: before acting on them.
- Distinctive: line 96
Create a context-free prompt that any engineer could pick up cold:
- Distinctive: line 125
Treat the prompt as if you've never seen the code before.
- Distinctive: line 129
CRITICAL: Never trust findings without verification.
- Distinctive: line 133
Run grep/view command to confirm existence
- Distinctive: line 134
Run node test to confirm behavior (if applicable)
- Distinctive: line 147
False positive rate ~20%: - Not yet reduced to target <15%
- Distinctive: line 148
Limited codebase testing: - Only 5 genesis-tools projects
≈ “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.
Files
⚠️ 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)
| Condition | VH | HR | Avg VH/Round | HR Rate |
| A: Direct | 19 | 1 | 3.8 | 20% |
| B: Reframe-Self | 21 | 1 | 4.2 | 20% ← WINNER |
| C: Direct-External | 23 | 4 | 4.6 | 80% |
| D: Reframe-External | 18 | 6 | 3.6 | 100% ← 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
| Trigger | Description |
| Complex system review | Multi-component systems with alignment concerns |
| Adversarial analysis | Looking for gaming vulnerabilities or edge cases |
| Independent verification | Verify claims from external sources (Gemini, GPT) |
| Pre-commit review | Final 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:
- Run grep/view command to confirm existence
- Run node test to confirm behavior (if applicable)
- 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
- False positive rate ~20% - Not yet reduced to target <15%
- Limited codebase testing - Only 5 genesis-tools projects
- No automated verification - Manual grep/test required
- 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.mdFailure 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)
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
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.

