Skip to content

Commit 78117c9

Browse files
Nick Sullivanclaude
andcommitted
📚 Update docs to goal-focused approach and remove yarn
optimal-development-workflow.md: - Remove prescriptive bash code from worktree setup, PR creation, and bot feedback loop sections - Convert to goal-focused descriptions matching autotask.md style - Clarify what happens without showing how (goals over process) README.md: - Remove yarn references (standardize on npm) - Update requirements to be more accurate - Remove "Git with worktrees support" (obvious) Addresses bot feedback: "Clarify bot feedback pseudo-code is illustrative" by removing it entirely and using goal-focused descriptions instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a0d4733 commit 78117c9

File tree

2 files changed

+9
-73
lines changed

2 files changed

+9
-73
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ Shows what changed, lets you choose what to update, preserves project-specific c
326326
- Claude Code with plugin support
327327

328328
**For autonomous workflows**:
329-
- Git with worktrees support
330329
- GitHub CLI (`gh`) installed and authenticated
331-
- Project dependency managers (npm/yarn/pip/etc.)
330+
- Node.js/npm (for JavaScript/TypeScript projects)
331+
- Project-specific dependency managers (pip, bundle, cargo, etc.)
332332

333333
**For Cursor**:
334334
- Cursor IDE with rules support

context/optimal-development-workflow.md

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@ Analyzes task complexity:
4242

4343
### Phase 2: Worktree Setup
4444

45-
Create isolated development environment:
46-
47-
```bash
48-
mkdir -p .gitworktrees
49-
git worktree add -b feature/task-name .gitworktrees/task-name main
50-
cd .gitworktrees/task-name
51-
/setup-environment # Install deps, copy env files, setup git hooks
52-
```
45+
Create isolated development environment in `.gitworktrees/` with sanitized branch name. Run `/setup-environment` to install dependencies, copy environment files, and set up git hooks (husky or pre-commit).
5346

5447
### Phase 3: Autonomous Execution
5548

@@ -99,74 +92,17 @@ Automatically follows all `.cursor/rules/*.mdc` standards.
9992

10093
### Phase 5: Create PR
10194

102-
```bash
103-
# Commit with proper message format
104-
git add .
105-
git commit -m "feat: Add OAuth2 authentication
106-
107-
- Implement OAuth2 flow with token refresh
108-
- Add email/password fallback
109-
- Session management middleware
110-
- Test coverage: 97%
111-
112-
🤖 Generated with Claude Code
113-
"
95+
Create commits following `.cursor/rules/git-commit-message.mdc` standards (emoji prefix, imperative verb, clear description, co-author line). Push to feature branch and create pull request with comprehensive description covering changes, rationale, trade-offs, and testing approach.
11496

115-
# Push to origin
116-
git push -u origin feature/task-name
97+
### Phase 6: Bot Feedback Loop
11798

118-
# Create PR
119-
gh pr create \
120-
--title "Add OAuth2 authentication" \
121-
--body "Summary of changes..."
122-
```
99+
**This is the key innovation** - autonomously handle bot feedback without waiting for human intervention.
123100

124-
### Phase 6: Bot Feedback Loop
101+
After creating the PR, wait 3 minutes for AI code review bots to complete initial analysis. Check for bot comments using GitHub API. Evaluate each piece of feedback critically - you have context bots lack (project standards, implementation rationale, trade-offs, requirements).
125102

126-
**This is the key innovation** - don't wait for you, autonomously handle bot feedback:
103+
Fix what's valuable (security issues, real bugs, good suggestions). Reject what's not (use WONTFIX with brief explanation for context-missing or incorrect feedback). You are the ultimate decider.
127104

128-
```bash
129-
echo "⏳ Waiting for bot reviews..."
130-
PR_NUMBER=$(gh pr view --json number -q .number)
131-
132-
# Initial wait for bots to run
133-
sleep 120
134-
135-
# Loop until all bot feedback addressed
136-
while true; do
137-
echo "📝 Checking for bot comments..."
138-
139-
# Get unresolved bot comments
140-
COMMENTS=$(gh api \
141-
repos/{owner}/{repo}/pulls/$PR_NUMBER/comments \
142-
--jq '.[] | select(.user.type == "Bot") | select(.resolved != true)')
143-
144-
if [ -z "$COMMENTS" ]; then
145-
echo "✅ All bot feedback addressed!"
146-
break
147-
fi
148-
149-
echo "🤖 Analyzing bot feedback..."
150-
151-
# Categorize each comment intelligently:
152-
# - CRITICAL: Security, bugs, breaking changes → Fix immediately
153-
# - VALID: Legitimate improvements → Apply fix
154-
# - CONTEXT-MISSING: Bot lacks project context → Mark WONTFIX with explanation
155-
# - FALSE-POSITIVE: Bot is wrong → Mark WONTFIX with reasoning
156-
157-
# If fixes made, push and re-wait
158-
if git diff --quiet; then
159-
break # No changes needed
160-
else
161-
git add .
162-
git commit -m "Address bot feedback"
163-
git push
164-
165-
echo "⏳ Waiting for bots to re-review..."
166-
sleep 90
167-
fi
168-
done
169-
```
105+
After pushing fixes, wait 90 seconds for bots to re-review. Iterate up to 5 times if needed until critical issues are resolved.
170106

171107
### Phase 7: Done - Handoff to You
172108

0 commit comments

Comments
 (0)