autonomous-longtask-v2 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited autonomous-longtask-v2 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
This skill optimizes Claude Code for long, autonomous development tasks—from multi-hour feature implementations to multi-session refactorings.
Every code change must close a feedback loop:
1. Write test (define expected behavior)
2. Implement code
3. Run test → loop closed
4. Refactor if needed
5. Re-run test → confidenceAnti-pattern (Open Loop):
"Implement feature X"
→ Code written, no verification
→ Bugs discovered laterBest Practice (Closed Loop):
"Implement feature X with tests.
Run tests after implementation."
→ Immediate verificationNever attempt to "one-shot" complex features:
❌ Implement entire feature at once
→ Context runs out mid-implementation
→ Next session inherits chaos
✅ Small, tested increments
→ Each increment works standalone
→ Clean handoff between sessionsCheckpoint patterns:
/rewind or Esc Esc for rollbacksclaude-progress.txt for session handoffsClaude has 200K tokens, but:
claude-progress.txt for session handoffs/compact <focus> for manual compactionUse TaskCreate/TaskUpdate for persistent progress tracking (replaces deprecated TodoWrite).
1. TaskCreate: Create task with subject, description, activeForm
2. TaskUpdate: Set dependencies with addBlockedBy
3. TaskUpdate: Mark in_progress when starting
4. TaskUpdate: Mark completed when done
5. TaskList: Find next available workpending → in_progress → completed
↑
(start work)Tasks persist across sessions and auto-unblock when dependencies complete.
For detailed patterns: See references/task-patterns.md
Subagents are lightweight Claude instances with isolated context. Only relevant results return to the orchestrator.
| Agent | Purpose | Tools |
|---|---|---|
general-purpose | Complex multi-step tasks | All |
Explore | Codebase exploration, pattern search | Glob, Grep, Read (no Edit/Write) |
Plan | Implementation planning | Glob, Grep, Read (no Edit/Write) |
Bash | Git operations, command execution | Bash only |
DO:
DON'T:
Read directlyRead directlyGlob directlyBackground subagents:
"Implement Stripe integration parallel:
Subagent 1 (Backend): Create API endpoint
Subagent 2 (Frontend): Payment form component
Subagent 3 (Tests): Integration tests
Start all three with Task tool (run_in_background: true).
Wait for completion, then integrate."Git worktrees for true parallelism:
git worktree add ../feature-a feature/a
git worktree add ../feature-b feature/b
# Separate Claude sessions in each worktreeCreate custom agents in .claude/agents/:
long-task-coordinator.md - orchestrates multi-step worktest-runner.md - runs and fixes testscode-reviewer.md - reviews before commitUse /rename to give sessions descriptive names:
/rename stripe-integrationclaude --continue # Resume most recent session
claude --resume # Session picker
claude --from-pr 123 # Resume PR-linked session| Key | Action |
|---|---|
↑/↓ | Navigate sessions |
P | Preview session |
R | Rename session |
B | Filter by branch |
/ | Search |
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=50/compact Focus on API changes/clearFor detailed patterns: See references/session-management.md
"Implement [FEATURE] with complete loop-closing.
Requirements:
- [Req 1]
- [Req 2]
Approach:
1. Create tasks with TaskCreate for each major step
2. Set dependencies with TaskUpdate (addBlockedBy)
3. Work through tasks: test → implement → verify
Constraints:
- Each increment must be testable
- Commit after each working step
- Update claude-progress.txt if context fills
Token-Budget: Use full 200K, do NOT stop early.
At context limit: Update claude-progress.txt for handoff.
Parallelize independent tasks with subagents.""Refactoring Part [N] of [TOTAL].
Previous Sessions:
- See claude-progress.txt
- Git log for prior changes
This Session Goals:
- [Goal 1]
- [Goal 2]
At session end:
- Update claude-progress.txt
- All tests must pass
- Document clear next steps
If context runs low:
- Finish cleanly (no half implementations)
- Write handoff document
- Next session continues seamlessly""Investigate and fix bug: [DESCRIPTION]
Observed behavior:
- [What happens]
- [When it happens]
- [Error messages]
Investigation Steps:
1. Reproduce locally
2. Check logs
3. Identify root cause
4. Implement fix
5. Add regression test (loop closing!)
6. Verify
Document findings in claude-progress.txt if complex.""Implement feature X.
Make all implementation decisions based on best practices.
Do NOT stop due to token budget.
Create tests and docs as you work.""Implement feature X.
Ask me BEFORE decisions about:
- Database schema changes
- External API selection
- Breaking changes
For everything else: Proceed autonomously."| Problem | Solution |
|---|---|
| Claude stops too early | Say "Do NOT stop due to token budget" explicitly |
| Too many clarifying questions | More context upfront, set autonomy level |
| Code style mismatch | "Follow pattern in [FILE]" |
| Task too complex | Break into increments, use TaskCreate |
| Context runs out | claude-progress.txt + clean commits |
| One-shotting fails | Explicitly require incremental approach |
| Lost progress between sessions | Use Tasks system (persists), not mental tracking |
/\
/E2E\ ← Playwright (critical flows)
/-----\
/ API \ ← Integration tests
/---------\
/ Unit \ ← Fastest feedback
/--------------\For detailed patterns: See references/verification-patterns.md
Recommendations:
START:
1. TaskCreate with task breakdown
2. Define autonomy level
3. Establish loop-closing pattern
DURING:
- Test each increment
- Commit after working steps
- Subagents for parallel work
- TaskUpdate status as you progress
END / HANDOFF:
- Update claude-progress.txt
- All tests green
- Clear next steps documented
- TaskUpdate: mark completedBased on:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.