代码大师|编程铁律
БесплатноБез исполняемых скриптовНе проверенAI 写的代码一上生产就崩——不是它不会写,是没人给它立规矩。 代码大师把「写、审、测、重构」的标准炼成一条硬规矩,整合 80k★ agent-skills、23k★ claude-skills 等顶级技能集,让每一行 AI 代码都过验收。 触发词:写代码、修bug、代码审查、PR…
от chen6896qqwee1 473 установки в других каталогахОб этом скилле
Dawn Code Master v6.0
50+ 顶级编码技能集成 + 全生命周期工作流 + 反合理化验证门禁。 写代码、修bug、审PR、做设计,按这个来。
0. Skill Router
Core Operating Behaviors
- Surface Assumptions - Before implementing, explicitly state assumptions
- Manage Confusion - Stop, name confusion, present tradeoff, wait for resolution
- Push Back - Point out problems directly, quantify downsides, propose alternatives
When to Use What
| Phase | Task | Skill |
|---|---|---|
| Define | Dont know what you want | interview-me |
| Define | Rough concept needs refining | [s2] Spec-Driven Dev |
| Plan | Have spec, need tasks | [s3] Planning |
| Build | Implementing code | [s4] Incremental Impl |
| Build | UI work | Frontend principles |
| Build | API work | [s16] API Design |
| Build | Need better context | [s6] Context Eng |
| Build | High stakes / unfamiliar code | [s7] Doubt-Driven |
| Verify | Writing/running tests | [s5] TDD |
| Verify | Bug fixing | [s8] Focused-Fix |
| Review | Reviewing code | [s9] PR Review |
| Review | Too complex | [s10] Code Simplification |
| Review | Security concerns | [s11] Security |
| Review | Performance concerns | [s12] Performance |
| Ship | Committing/branching | [s14] Git Workflow |
| Ship | CI/CD pipeline | [s15] CI/CD |
| Ship | Deploying/launching | [s13] Ship Gate |
| Maintain | Migration/deprecation | [s19] Migration |
| Maintain | Tech debt | [s20] Tech Debt |
| Docs | Writing docs/ADRs | Doc standards |
| Ops | Logs/metrics/alerts | [s18] Observability |
1. Coding Laws
Pre-Commit Checklist: syntax clean, tests pass, type hints, no bare except, no hardcoded secrets, f-string (not format()), pathlib (not os.path), docstrings, functions <= 30 lines.
File Structure: <= 300 lines per file, <= 30 lines per function, one thing per function.
Error Handling: async ops must have error handling, network requests must timeout, user input must be validated, external deps assumed to fail.
Anti-Rationalization:
| Rationalization | Reality |
|---|---|
| "Write now, refactor later" | Later never comes. |
| "Just one line, no need to check" | Small diffs push files past boundaries. |
| "AI-generated code is probably fine" | AI code needs more scrutiny. |
| "Tests pass, it is good" | Tests dont catch architecture or security issues. |
2. Spec-Driven Development
Law: NO CODE WITHOUT AN APPROVED SPEC.
9 Mandatory Sections: Title/Metadata, Context, Functional Requirements (RFC 2119), Non-Functional Requirements, Acceptance Criteria, Edge Cases, API Contract, Data Model, Out of Scope.
4-Phase Gated Workflow: SPECIFY -> PLAN -> TASKS -> IMPLEMENT (each reviewed by human)
Stop-and-Ask Rules: Scope creep, >30% ambiguity, breaking changes, security implications, unknown performance.
Anti-Rationalization: | Rationalization | Reality | | "Clear requirements, no spec needed" | Clear reqs take 5 min. Unclear ones need it. | | "Quick prototype first" | The prototype is the final product. | | "Specs are too slow" | Specs save 10x refactoring time. | | "I will document later" | Later never comes. |
3. Planning and Task Breakdown
Each task <= 30 min, independently testable, with clear AC. Slicing strategies: Vertical (preferred), Contract-First, Risk-First.
4. Incremental Implementation
Cycle: Implement -> Test -> Verify -> Commit -> Next slice
Anti-Rationalization: "Writing everything at once is faster" -> 500 lines untested = 10x debugging. "Just a few lines, no need to commit separately" -> atomic commits make rollback/review clean. "I will test later" -> never happens.
5. Test-Driven Development + E2E
TDD Cycle: RED (write failing test) -> GREEN (min code to pass) -> REFACTOR (clean up)
Prove-It Pattern: Write test reproducing bug (RED) -> Fix bug (GREEN) -> Write regression test -> Refactor
E2E Silent-Pass Detection: toBeDefined()/not.toBeNull() on Locator always passes. Use toBeVisible()/toHaveText().
P0 Anti-patterns: toBeDefined() on Locator, forgotten it.only, empty catch blocks, un-awaited async.
Anti-Rationalization: "Tests pass, it is good" -> tests dont catch architecture/security. "AI-generated code is fine" -> needs more scrutiny. "Write code first, add tests later" -> tests what code does, not what it should do.
6. Context Engineering
From: ratel-ai/ratel (351 star) + NeoLabHQ/context-engineering-kit (1.3k star)
Core Principle: Progressive Disclosure - Load only what each turn needs.
Context Hierarchy: 1. Rules Files (persistent) -> 2. Spec/Arch (per feature) -> 3. Source Files (per task) -> 4. Error Output (per iteration) -> 5. History (accumulates, compacts)
Ratel-Style Catalog: All skills in SkillCatalog, tools in ToolCatalog. Each turn loads only matching ones.
Anti-Rationalization: "All rules in system promp
Установить 代码大师|编程铁律 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 代码大师|编程铁律?
AI 写的代码一上生产就崩——不是它不会写,是没人给它立规矩。 代码大师把「写、审、测、重构」的标准炼成一条硬规矩,整合 80k★ agent-skills、23k★ claude-skills 等顶级技能集,让每一行 AI 代码都过验收。 触发词:写代码、修bug、代码审查、PR review、重构、设计评审、API设计、测试用例、spec 驱动开发。
Как установить скилл 代码大师|编程铁律?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 代码大师|编程铁律 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic