autonomous-skill
Skill1 starsChanged 11 months agoMITView on GitHub
Enables fully autonomous flow execution without human intervention. Sets up hooks in the user's project and provides Oversight Agent guidance.
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- allanninal/claude-code-skillstheir own version, first seen Oct 17, 2026
- myysophia/codex-configtheir own version, first seen Oct 8, 2026
- hansai-art/hans-sleep-yolo-modetheir own version, first seen Apr 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- myysophia/codex-config★ 195same name
- hansai-art/hans-sleep-yolo-mode★ 18same name
- allanninal/claude-code-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- flow-skillSkill
- roadmap-skillSkill
- validation-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 17 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Status: Experimental: - Use for well-defined, lower-risk tasks.
- Very specific: line 15
When /flow --autonomous is first invoked, check if hooks are configured.
- Distinctive: line 30
Create the following files in the user's project:
- Distinctive: line 119
After hooks are set up, to start autonomous mode:
- Very specific: line 121
Create marker file: touch .claude/.autonomous-mode
- Distinctive: line 122
Start the flow normally
- Very specific: line 129
Write "COMPLETE" to marker: echo "COMPLETE" > .claude/.autonomous-mode
- Distinctive: line 146
When a question arises:
- Distinctive: line 147
Check if answer exists in: plan.md, roadmap item, CLAUDE.md
- Distinctive: line 148
If clear answer: use it
- Distinctive: line 149
If reasonable default exists: use it, document assumption
- Distinctive: line 150
If genuinely ambiguous: exit autonomous mode, ask human
- Distinctive: line 153
When multiple approaches valid:
- Distinctive: line 154
Check CLAUDE.md for preferences
- Distinctive: line 155
Check codebase for established patterns
- Distinctive: line 157
Document rationale in outcome.md
- Very specific: line 173
Document all autonomous decisions in a dedicated autonomous-log.md file in the flow's context directory:
- Distinctive: line 217
When flow is complete:
- Distinctive: line 219
Verify all acceptance criteria met
- Distinctive: line 221
Update outcome.md normally (without autonomous decision details)
- Distinctive: line 223
Stop hook sees "COMPLETE", removes the marker file, allows normal exit
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Autonomous Skill - Unattended Flow Execution
This skill enables autonomous mode where flows run to completion without human intervention. An Oversight Agent makes judgment calls that would normally require human input.
Status: Experimental - Use for well-defined, lower-risk tasks.
Setup in User's Project
When /flow --autonomous is first invoked, check if hooks are configured. If not, set them up.
Check for Existing Setup
# Check if hooks are configured
if [ -f ".claude/hooks/permission-handler.sh" ] && [ -f ".claude/hooks/stop-handler.sh" ]; then
echo "Hooks already configured"
else
echo "First-time setup required"
fiFirst-Time Setup
Create the following files in the user's project:
1. Permission Handler (.claude/hooks/permission-handler.sh)
#!/bin/bash
# Permission hook for autonomous mode
# Returns "allow" in autonomous mode, "ask" otherwise
if [ -f ".claude/.autonomous-mode" ]; then
echo '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"allow"}}}'
else
echo '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"ask"}}}'
fi2. Stop Handler (.claude/hooks/stop-handler.sh)
#!/bin/bash
# Stop hook for autonomous mode (Ralph Wiggum pattern)
# In autonomous mode: reinject prompt to keep iterating
# In human mode: allow normal exit
if [ -f ".claude/.autonomous-mode" ]; then
# Read the marker file for completion condition
COMPLETION_MARKER=$(cat .claude/.autonomous-mode 2>/dev/null)
# Check if completion was signaled
if [ "$COMPLETION_MARKER" = "COMPLETE" ]; then
# Task marked complete - allow exit and clean up
rm -f .claude/.autonomous-mode
exit 0
fi
# Not complete - reinject prompt to continue
# Exit code 2 tells Claude Code to reinject the prompt
exit 2
else
# Human mode - allow normal exit
exit 0
fi3. Settings Configuration (.claude/settings.json)
Append or merge into existing settings:
{
"permissions": {
"deny": [
"Read(./.env*)",
"Read(./secrets/**)",
"Bash(rm -rf /*)",
"Bash(rm -rf ~/*)",
"Bash(git push --force:*)",
"Bash(git push * --force:*)",
"Bash(git push origin main:*)",
"Bash(git push origin master:*)"
]
},
"hooks": {
"PermissionRequest": [
{
"type": "command",
"command": ".claude/hooks/permission-handler.sh"
}
],
"Stop": [
{
"type": "command",
"command": ".claude/hooks/stop-handler.sh"
}
]
}
}4. After Setup
Autonomous mode configured. Please restart with `claude --resume` to continue.
(Hooks are loaded at session start and do not hot-reload)Enabling Autonomous Mode
After hooks are set up, to start autonomous mode:
- Create marker file:
touch .claude/.autonomous-mode - Start the flow normally
- Hooks will auto-allow permissions and reinject prompts
Disabling Autonomous Mode
To exit autonomous mode:
- Write "COMPLETE" to marker:
echo "COMPLETE" > .claude/.autonomous-mode - The stop hook will clean up and allow exit
Or manually: rm .claude/.autonomous-mode
Oversight Agent
In autonomous mode, you act as the Oversight Agent - making decisions that would normally require human input.
Decision Framework
Phase Transitions
- Understanding → Planning: Approve if goals and context documented
- Planning → Implementation: Approve if plan has clear tasks
- Implementation → Completion: Approve if tasks complete and validation passes
Clarifying Questions
When a question arises:
- Check if answer exists in: plan.md, roadmap item, CLAUDE.md
- If clear answer: use it
- If reasonable default exists: use it, document assumption
- If genuinely ambiguous: exit autonomous mode, ask human
Implementation Options
When multiple approaches valid:
- Check CLAUDE.md for preferences
- Check codebase for established patterns
- Prefer simpler approach
- Document rationale in outcome.md
Validation Findings
- Critical/High: Attempt auto-remediation (max 3 attempts)
- Medium/Low: Document, continue
Blocking Conditions
Exit autonomous mode and ask human if:
- Critical issues can't be auto-remediated after 3 attempts
- Genuine ambiguity with no reasonable default
- Security-sensitive decisions
- Destructive operations not covered by deny rules
Decision Logging
Document all autonomous decisions in a dedicated autonomous-log.md file in the flow's context directory:
# Autonomous Flow Log
## Flow: feature/2025-01-08_user-profile
## Mode: Autonomous
## Started: 2025-01-08 14:30:00
## Completed: 2025-01-08 15:12:00
### Decision Log
#### Decision 1: Phase Transition (Understanding → Planning)
- **Time**: 14:35:00
- **Decision**: Approve
- **Rationale**: Goals documented, context sufficient
- **Confidence**: High
#### Decision 2: Implementation Approach
- **Time**: 14:42:00
- **Question**: Use existing UserCard component or create new?
- **Decision**: Extend existing UserCard
- **Rationale**: CLAUDE.md prefers extending over creating, pattern exists
- **Assumptions**: UserCard is flexible enough for profile use case
- **Confidence**: Medium
#### Decision 3: Validation Remediation
- **Time**: 15:01:00
- **Issue**: Missing null check (Medium severity)
- **Decision**: Auto-remediate
- **Fix Applied**: Added optional chaining
- **Re-validation**: Passed
- **Confidence**: High
### Final Outcome
- **Status**: Completed
- **Human Interventions**: 0
- **Remediation Cycles**: 1
- **Total Decisions**: 7
- **Assumptions Made**: 2Completing Autonomous Flow
When flow is complete:
- Verify all acceptance criteria met
- Finalize autonomous-log.md with final outcome summary
- Update outcome.md normally (without autonomous decision details)
- Exit autonomous mode:
echo "COMPLETE" > .claude/.autonomous-mode- Stop hook sees "COMPLETE", removes the marker file, allows normal exit
- Permission hook no longer auto-allows (marker gone)
- Session returns to human mode with normal permission prompts
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.

