core-workflow
travisjneuman/.claude/skills/core-workflow/SKILL.md
Detailed development workflow patterns, checklists, and standards. Auto-loads for complex tasks, planning, debugging, testing, or when explicit patterns are needed. Contains session protocols, git conventions, security checklists, testing strategy, and communication standards.
Skill99 starsChanged 7 months ago
- Commits and pushes
What's in it
- Core Workflow Patterns
- Session Protocol
- Start Checklist
- End Checklist
- GSD (Get Shit Done) - Multi-Phase Projects
- When to Use GSD
- GSD Quick Start
- GSD Commands Reference
- GSD File Structure
- Git Conventions
- Commit Types
- Commit Message Format
- Auto-Commit on Task Completion
- Security Checklist
- Frontend
- Backend
- Performance Targets
- Accessibility (WCAG AA)
- Testing Strategy
- Thinking Frameworks
- Debugging Protocol
- Standard Issues
- Intermittent/Complex Issues
- Build vs Buy Philosophy
- License Requirements
- Communication Standards
- Progress Updates
- When to Ask
- Directness Protocol
- Context Hygiene
---
name: core-workflow
description: Detailed development workflow patterns, checklists, and standards. Auto-loads for complex tasks, planning, debugging, testing, or when explicit patterns are needed. Contains session protocols, git conventions, security checklists, testing strategy, and communication standards.
---
# Core Workflow Patterns
Comprehensive development workflow reference. This loads on-demand for detailed patterns.
**Quick links to rules:** `~/.claude/rules/` for stack-specific and task-type checklists.
---
## Session Protocol
### Start Checklist
```bash
# 1. Sync with remote (ALWAYS FIRST)
git fetch origin main && git merge origin/main --no-edit
# or: git fetch origin master && git merge origin/master --no-edit
# 2. Get context
git log -3
# 3. Check for existing work
ls tasks/*.md 2>/dev/null || echo "No active tasks"
```
**CRITICAL:** Check `<env>` section for today's date. NEVER guess dates.
### End Checklist
```bash
# 1. Verify
npm run test && npm run type-check # or project equivalent
# 2. Archive completed work
mv tasks/<completed-task>.md .archive/completed-tasks/
# 3. Commit with comprehensive message
git add .
git commit # See Git Conventions below
git push origin main
```
**Stop dev server after testing:** `lsof -ti:PORT | xargs kill` (or Windows equivalent)
---
## GSD (Get Shit Done) - Multi-Phase Projects
For complex features spanning days/weeks, use **GSD**.
### When to Use GSD
| Complexity | Use GSD? | Workflow |
| -------------------------- | -------- | --------------------- |
| Simple fix (<30 min) | No | Direct execution |
| Single feature (30min-2hr) | No | Task file + TodoWrite |
| Multi-phase feature (days) | **Yes** | GSD workflow |
| New project/app | **Yes** | GSD from start |
### GSD Quick Start
```bash
/gsd:new-project # Initialize with brief + config
/gsd:create-roadmap # Create phases and state tracking
/gsd:plan-phase 1 # Create detailed plan for phase
/gsd:execute-plan <path> # Execute the plan
```
### GSD Commands Reference
| Command | Purpose |
| ---------------------------------- | ---------------------------------- |
| `/gsd:progress` | Check status, route to next action |
| `/gsd:resume-work` | Resume from previous session |
| `/gsd:pause-work` | Create handoff when pausing |
| `/gsd:plan-phase <n>` | Create detailed phase plan |
| `/gsd:execute-plan <path>` | Execute a PLAN.md |
| `/gsd:add-phase <desc>` | Add phase to roadmap |
| `/gsd:insert-phase <after> <desc>` | Insert urgent work |
| `/gsd:complete-milestone <ver>` | Archive and tag release |
| `/gsd:help` | Full command reference |
### GSD File Structure
```
.planning/
├── PROJECT.md # Vision and requirements
├── ROADMAP.md # Phase breakdown
├── STATE.md # Project memory (context accumulation)
├── config.json # Workflow mode (interactive/yolo)
└── phases/
└── 01-foundation/
├── 01-01-PLAN.md
└── 01-01-SUMMARY.md
```
---
## Git Conventions
### Commit Types
`feat` | `fix` | `refactor` | `perf` | `test` | `docs` | `chore`
### Commit Message Format
```
type: Short summary (50 chars max)
## What Changed
- File X: Added feature Y
- File Z: Updated config for A
## Why
- User requested feature Y
- Config A needed update
## Testing
- All tests passing
- Manual verification done
```
### Auto-Commit on Task Completion
**When a task or plan is complete, automatically commit without being asked.**
#### Pre-Commit Checks
```bash
# 1. Check this is a user-owned repo (not external)
git remote get-url origin | grep -q "travisjneuman" && echo "OK: User repo"
# 2. Check push is not blocked
git remote get-url --push origin | grep -q "no_push" && echo "SKIP: External repo"
```
#### Rules
| Condition | Action |
| ---------------------------- | ---------------------------- |
| User's own repo | Auto-commit + push |
| External repo (`no_push`) | **Never commit** - read-only |
| Submodule (external) | **Never commit** - read-only |
| Uncommitted secrets detected | **Block** - warn user |
---
## Security Checklist
### Frontend
- [ ] `textContent` not `innerHTML`
- [ ] `unknown` type for external data
- [ ] No exposed API keys
- [ ] HTTPS for external requests
- [ ] Input sanitization
### Backend
- [ ] Input validation on all endpoints
- [ ] Auth guards on protected routes
- [ ] Parameterized queries (no raw SQL)
- [ ] Secrets in environment variables
---
## Performance Targets
| Metric | Target |
| ---------------------- | --------------- |
| Initial bundle | <100KB gzipped |
| Page load | <1s |
| Interaction latency | <100ms |
| Lighthouse Performance | 95+ |
| Accessibility | WCAG AA minimum |
---
## Accessibility (WCAG AA)
- [ ] Semantic HTML structure
- [ ] Alt text for meaningful images
- [ ] Keyboard navigation (Tab, Enter, Escape)
- [ ] Focus indicators visible
- [ ] Color contrast >= 4.5:1
- [ ] ARIA labels on interactive elements
- [ ] Touch targets >= 44x44px
---
## Testing Strategy
| Type | Location | When |
| ----------- | -------------------- | --------------- |
| Unit | `src/**/__tests__/` | Every function |
| Component | Same | Every component |
| Integration | `tests/integration/` | Critical paths |
| E2E | `tests/e2e/` | Before release |
**Before committing:** `npm run test && npm run type-check`
---
## Thinking Frameworks
Use structured decision-making for complex choices:
| Decision Type | Framework |
| ---------------------- | ----------------------------- |
| Long-term implications | `/consider:10-10-10` |
| Root cause analysis | `/consider:5-whys` |
| Prioritization | `/consider:eisenhower-matrix` |
| Innovation | `/consider:first-principles` |
| Risk identification | `/consider:inversion` |
| Simplification | `/consider:occams-razor` |
| Focus | `/consider:one-thing` |
| Tradeoffs | `/consider:opportunity-cost` |
| Optimization | `/consider:pareto` |
| Consequences | `/consider:second-order` |
---
## Debugging Protocol
### Standard Issues
1. Reproduce the issue
2. Read relevant code
3. Identify root cause
4. Fix + add test
5. Verify fix
### Intermittent/Complex Issues
Use `debug-like-expert` skill for systematic approach.
---
## Build vs Buy Philosophy
**We build features. We use utilities.**
- **Build:** All feature logic, business rules, UI/UX, data models
- **Use:** Low-level abstractions (D3, Recharts, Lexical, Konva)
- **Criterion:** We own the feature, library handles complexity
### License Requirements
- **Must use:** MIT, Apache 2.0, BSD
- **Never use:** GPL, AGPL (blocks commercialization)
---
## Communication Standards
### Progress Updates
Give high-level updates, not spam:
```
✅ Added authentication middleware (3 files)
✅ Updated user store with new fields
⏳ Testing login flow...
```
### When to Ask
Use `AskUserQuestion` when:
- Requirements are ambiguous
- Multiple valid architectures exist
- Scope might expand
- Design decisions need validation
### Directness Protocol
- Logic over feelings
- Correctness over validation
- Direct feedback over diplomacy
- Best solution over agreement
---
## Context Hygiene
### Reduce Token Usage
- Short, high-signal summaries over long logs
- Don't `@`-embed large docs by default
- Reference paths + when to read them
- Use `/clear` after completing work units
### Delegation Patterns
| Situation | Action |
| -------------------- | ----------------------------------------- |
| Context >100k tokens | Create prompt → delegate to fresh context |
| Moderate complexity | `/create-prompt` → `/run-prompt` |
| Multi-stage features | `/create-meta-prompt` |
| Approaching limits | `/whats-next` for handoff document |
---
## Quick Reference
### Common Commands
```bash
npm run dev # Start dev server
npm run build # Production build
npm run test # Run tests
npm run type-check # TypeScript check
```
### File Naming
| Type | Convention | Example |
| ---------- | ---------- | --------------- |
| Components | PascalCase | `UserCard.tsx` |
| Hooks | use prefix | `useAuth.ts` |
| Utilities | camelCase | `utils.ts` |
| Tests | .test.ts | `utils.test.ts` |
---
## Resources
### Official
- [Claude Code Docs](https://docs.anthropic.com/en/docs/claude-code)
- [Anthropic Best Practices](https://www.anthropic.com/engineering/claude-code-best-practices)
### Community
- [awesome-claude-code](https://github.com/hesreallyhim/awesome-claude-code)
- [awesome-claude-md](https://github.com/josix/awesome-claude-md)
---
## See Also
- `~/.claude/docs/reference/checklists/` - Task-type specific checklists
- `~/.claude/docs/reference/stacks/` - Stack-specific patterns
- `~/.claude/docs/reference/tooling/` - Tool configuration guides
- `~/.claude/skills/MASTER_INDEX.md` - Full skills catalog
- `~/.claude/agents/README.md` - Agents directory
More agent context in travisjneuman/.claude
127 other files this repository gives its agents, the first 60 shown.
CLAUDE.md
Skill
- accessibility-a11yskills/accessibility-a11y/SKILL.md
- agent-teamsskills/agent-teams/SKILL.md
- ai-ml-developmentskills/ai-ml-development/SKILL.md
- ai-policy-generatorskills/ai-policy-generator/SKILL.md
- android-developmentskills/android-development/SKILL.md
- api-designskills/api-design/SKILL.md
- application-securityskills/application-security/SKILL.md
- ar-vr-xrskills/ar-vr-xr/SKILL.md
- audio-productionskills/audio-production/SKILL.md
- authentication-patternsskills/authentication-patterns/SKILL.md
- auto-claudeskills/auto-claude/SKILL.md
- battle-card-builderskills/battle-card-builder/SKILL.md
- blockchain-web3skills/blockchain-web3/SKILL.md
- brand-identityskills/brand-identity/SKILL.md
- business-strategyskills/business-strategy/SKILL.md
- career-path-plannerskills/career-path-planner/SKILL.md
- case-interview-practiceskills/case-interview-practice/SKILL.md
- codebase-documenterskills/codebase-documenter/SKILL.md
- compliance-engineeringskills/compliance-engineering/SKILL.md
- content-repurposerskills/content-repurposer/SKILL.md
- contract-redlinerskills/contract-redliner/SKILL.md
- course-material-creatorskills/course-material-creator/SKILL.md
- customer-persona-builderskills/customer-persona-builder/SKILL.md
- customer-successskills/customer-success/SKILL.md
- database-expertskills/database-expert/SKILL.md
- data-engineeringskills/data-engineering/SKILL.md
- data-scienceskills/data-science/SKILL.md
- debate-practice-coachskills/debate-practice-coach/SKILL.md
- debug-systematicskills/debug-systematic/SKILL.md
- devex-sdk-designskills/devex-sdk-design/SKILL.md
- devops-cloudskills/devops-cloud/SKILL.md
- docxskills/document-skills/docx/SKILL.md
- pdfskills/document-skills/pdf/SKILL.md
- pptxskills/document-skills/pptx/SKILL.md
- document-skillsskills/document-skills/SKILL.md
- xlsxskills/document-skills/xlsx/SKILL.md
- edge-computingskills/edge-computing/SKILL.md
- electron-desktopskills/electron-desktop/SKILL.md
- email-systemsskills/email-systems/SKILL.md
- embedded-iotskills/embedded-iot/SKILL.md
- event-driven-architectureskills/event-driven-architecture/SKILL.md
- event-plannerskills/event-planner/SKILL.md
- financeskills/finance/SKILL.md
- financial-scenario-plannerskills/financial-scenario-planner/SKILL.md
- flutter-developmentskills/flutter-development/SKILL.md
- frontend-enhancerskills/frontend-enhancer/SKILL.md
- fundraising-analyzerskills/fundraising-analyzer/SKILL.md
- game-developmentskills/game-development/SKILL.md
- generic-code-reviewerskills/generic-code-reviewer/SKILL.md
- generic-design-systemskills/generic-design-system/SKILL.md
- generic-feature-developerskills/generic-feature-developer/SKILL.md
- generic-fullstack-code-reviewerskills/generic-fullstack-code-reviewer/SKILL.md
- generic-fullstack-design-systemskills/generic-fullstack-design-system/SKILL.md
- generic-fullstack-feature-developerskills/generic-fullstack-feature-developer/SKILL.md
- generic-fullstack-ux-designerskills/generic-fullstack-ux-designer/SKILL.md
- generic-react-code-reviewerskills/generic-react-code-reviewer/SKILL.md
- generic-react-design-systemskills/generic-react-design-system/SKILL.md
- generic-react-feature-developerskills/generic-react-feature-developer/SKILL.md
- generic-react-ux-designerskills/generic-react-ux-designer/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

