Skip to content
VIBE TIPS · 15 ENTRIES

Vibe Tips

实战 AI coding 技巧、跨 agent 框架推荐、深度长文。

深度长文

技巧速查

  • 🧠CLAUDE.md is your team constitution

    Prompt Tips

    Place CLAUDE.md at project root. 100x more efficient than typing prompts every time. Include: code style, architecture decisions, forbidden patterns, testing requirements.

  • 🔄Context Rot Management

    Workflow Optimization

    0-50%: work freely. 50-70%: attention drops. 70-90%: use /compact. 90%+: force /clear. GSD solves this with fresh context per task.

  • 🌳Git Worktree Isolation

    Workflow Optimization

    Each feature branch gets its own worktree. Parallel development without mutual interference. gstack, viwo-cli, claude-squad all have built-in support.

  • 🎭Role-based Prompting

    Agent Collaboration

    Use gstack's /plan-ceo-review and /plan-eng-review for staged review. Or GSD's PM → Research → Architect → Dev → Test cycle.

  • 🧪TDD First

    Debugging Tips

    Write failing test first → write minimal code to pass → continue. Superpowers enforces this pattern. Dramatically reduces AI-generated logic errors.

  • 🔒Security First

    Prompt Tips

    Use skill-vetter to audit any third-party skill before install. Use VibeSec-Skill to prevent common vulnerabilities. MCP servers can read/write your codebase — check permission scopes.

  • 📝Progressive Building

    Workflow Optimization

    Break into phases: brainstorm first, then plan, then implement. Verify each step before continuing. Prevents scope explosion and wasted context.

  • 🤖Sub-agent Division

    Agent Collaboration

    Each sub-agent has independent context — no cross-contamination. Superpowers and claude-swarm natively support sub-agent orchestration.

  • 🌐Headless Browser Testing

    Debugging Tips

    Playwright MCP provides 22 tools: navigate, click, fill, screenshot, evaluate. Verify your UI changes are correct without leaving the terminal.

  • 🧱Skill Composition

    Agent Collaboration

    Keep each skill under 500 lines with a single responsibility. Chain them via sub-agent calls or sequential invocation. Easier to test, version, and reuse.

  • 🔍MCP Server Discovery

    Workflow Optimization

    Vibe Rules scans 5 known config locations (Claude, Cursor, Windsurf, etc.) to show all MCP servers in one view. Helps avoid duplicate or conflicting server configs.

  • 📊Diff Before Sync

    Prompt Tips

    Different agents may have diverged copies of the same skill. Vibe Rules' diff engine shows content differences across all agents so you can sync the right version.

  • 🐛Reproduce Before Fixing

    Debugging Tips

    Never fix blind. Write a test that fails for the exact reason the bug exists. Then fix until the test passes. This prevents regressions and confirms root cause.

  • 🤝Multi-Agent Handoff Protocol

    Agent Collaboration

    Use structured handoff: agent A outputs a summary artifact, agent B receives it as context. Avoid passing raw conversation history between agents.

热门框架