squirrel – skill Lập trình cho agent AI
Kỹ năng lập trình AI toàn chu trình: lập kế hoạch, xây dựng, kiểm thử, lint, sửa lỗi và viết tài liệu chuẩn production. Tự nhận diện trạng thái dự án và điều chỉnh pipeline 8 giai đoạn.
Cài skill squirrel bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/squirrel-6135a.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /squirrel – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/squirrel-6135a.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $squirrel – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/squirrel-6135a.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /squirrel – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/squirrel-6135a.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /squirrel – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Squirrel — Full-Cycle Software Development Skill
Overview
Squirrel is a full-cycle AI coding skill that works across 9 AI coding agents. It auto-detects project state (greenfield, in-progress, or mature) and adapts its 8-phase engineering pipeline accordingly. Instead of a one-size-fits-all workflow, it figures out where the project actually is and jumps in at exactly the right point.
When to Use This Skill
- Use when starting a new project from scratch (greenfield)
- Use when improving an existing codebase (in-progress or mature)
- Use when fixing bugs, adding features, or refactoring
- Use when adding tests, linting, or CI/CD to a project
- Use when writing production-grade documentation
- Use when the user says "build me", "fix this", "squirrel this project", or any multi-step development task
How It Works
Step 0: Detect Mode
Squirrel classifies the project directory:
| Signal | Mode | Entry Point |
|--------|------|-------------|
| Empty directory | Greenfield | All 8 phases from scratch |
| Source files, no tests/docs | In-Progress | Audit first, then improve |
| Source + tests + CI + README | Mature | Targeted improvements |
| "fix this bug / add feature" | Targeted | Scoped work only |
The 8-Phase Pipeline
1. Discover — Understand the project (audit existing code or gather requirements)
2. Plan — Concrete task list with dependencies and done-criteria
3. Build — Write or modify code (parallel sub-agents when supported)
4. Test — Run existing tests, write new ones, 70%+ coverage target
5. Bug Hunt — Static analysis + manual review
6. Polish — Lint, format, type check, remove dead code
7. Document — README + inline docs (update existing, don't overwrite)
8. Ship — Final checklist: tests green, no secrets, CI configured
Failure Recovery (3-Strike Rule)
1. Strike 1: Fix the specific error. Run tests. Move on.
2. Strike 2: Re-read the code. Try a different approach.
3. Strike 3: Stop the failing approach. Preserve a diff and document what failed. Revert only your own identifiable changes when safe; never reset unrelated user work. Ask for missing decisions if necessary.
Examples
Example 1: Build a REST API
> build me a REST API for a todo app with TypeScript and ExpressSquirrel auto-detects greenfield mode and runs all 8 phases.
Example 2: Fix a bug
> fix this bug in src/auth/login.pySquirrel enters targeted mode — abbreviated audit, scoped fix, verify.
Example 3: Improve existing project
> squirrel this project — add tests, fix lint errors, write READMESquirrel audits the existing codebase, then applies phases 4-8.
Best Practices
- Respects existing code — matches naming conventions, test framework, import style, and architecture
- Reads 2-3 similar files before writing a new one
- Never suppresses type errors with
as anyor@ts-ignore - Never deletes failing tests to "pass"
- Never leaves code in a broken state
Platform Compatibility
Squirrel works on: Claude Code, Codex, Cursor, Antigravity, Gemini CLI, GitHub Copilot, Windsurf, OpenCode, Aider (9 total).
Install with:
# Universal installer
npx skills add flyingsquirrel0419/squirrel-skillLimitations
- Does not replace environment-specific validation or expert review
- CI/CD templates are starting points, not drop-in guarantees
- Parallel sub-agent execution depends on platform support
Related Skills
@brainstorming- For planning before implementation@test-driven-development- For TDD-oriented workflows@systematic-debugging- For methodical problem-solving
Skill liên quan
- ssh-penetration-testing – Thực hiện đánh giá bảo mật SSH toàn diện, gồm liệt kê, tấn công thông tin đăng nhập…
- super-code – Phong cách mã nguồn chuẩn áp dụng cho mọi tác vụ lập trình, đảm bảo code gọn, đúng và…
- supercov – Đo độ bao phủ dòng, nhánh và MC/DC của các test hiện có bằng CLI supercov, sau đó viết…
- sveltekit – Xây dựng ứng dụng web full-stack với SvelteKit — định tuyến theo file, SSR, SSG, API…
- swift – Hướng dẫn viết code chuẩn theo ngôn ngữ dành cho Swift.
- swift-concurrency-expert – Rà soát và sửa các lỗi concurrency trong Swift như actor isolation và vi phạm Sendable.
- swiftui-expert-skill – Viết, rà soát và tái cấu trúc SwiftUI cho iOS hoặc macOS, bao gồm luồng dữ liệu, cấu…
- swiftui-liquid-glass – Triển khai hoặc rà soát các API Liquid Glass của SwiftUI với fallback đúng và thứ tự…