← スキル一覧に戻る

autonomous-mode
by ahmeddyounes
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: autonomous-mode description: Autonomous codebase improvement mode that continuously analyzes and fixes issues. Use when the user wants Claude to run in a self-directed loop to improve code quality, fix bugs, refactor, or make architectural improvements without requiring manual prompts for each change. Triggers on phrases like "autonomous mode", "continuous improvement", "auto-fix", "improvement loop", or requests to automatically improve the codebase.
Autonomous Mode
Continuously improve the codebase through an autonomous analysis-fix-test-commit loop.
The Loop
Execute this cycle until stopped:
- Discover - Find files to analyze
- Analyze - Deep-dive into one file for issues
- Fix - Make the most impactful improvement
- Test - Run tests to verify the fix
- Commit - Commit if tests pass (one fix per commit)
- Log - Record progress in
.claude-improvements.log - Continue - Say "NEXT" and return to step 1
Discovery Phase
# Find source files (adjust extensions for the project)
find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.php" -o -name "*.py" \) \
-not -path "*/node_modules/*" -not -path "*/vendor/*" -not -path "*/.git/*" | head -30
Track analyzed files in .claude-improvements.log to avoid re-analyzing.
Analysis Checklist
For each file, check for:
- Critical: Syntax errors, undefined methods/variables, SQL injection, XSS
- High: Missing error handling, type mismatches, security issues
- Medium: Code duplication, missing validation, poor naming
- Low: Style issues, missing docs, TODO comments
Prioritize by impact. Fix the most critical issue first.
Fix Rules
- One fix per commit - Keep changes atomic and reviewable
- Minimal changes - Change only what's necessary
- Preserve behavior - Don't break existing functionality
- Run tests before committing - Never commit failing code
Commit Format
git add <files>
git commit -m "fix(<scope>): <description>
- What was wrong
- How it was fixed
- Impact of the change"
Progress Logging
Append to .claude-improvements.log:
[YYYY-MM-DD HH:MM] FILE: path/to/file.ts
ISSUE: Description of the issue found
FIX: Description of the fix applied
COMMIT: abc1234
STATUS: PASS/FAIL
---
Escalation
When all files have been analyzed:
- Re-run static analysis tools (linters, type checkers)
- Look for cross-file issues (unused exports, circular deps)
- Consider architectural improvements
- Update dependencies if outdated
- Improve test coverage
Stop Conditions
Stop the loop when:
- User says "stop" or "pause"
- A critical error occurs that needs human input
- All improvements are exhausted (rare)
Start Command
Begin with:
echo "=== AUTONOMOUS MODE STARTED ===" >> .claude-improvements.log
echo "[$(date '+%Y-%m-%d %H:%M')] Session started" >> .claude-improvements.log
Then immediately enter the loop. Say "NEXT" after each cycle to continue.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です