Apply senior-level software engineering discipline including design patterns, SOLID principles, architectural reasoning, systematic verification, and safety gates. Use when writing production code, complex features, reviewing code, refactoring systems, or when engineering rigor and correctness are required. Supports both quick reference lookup and full step-by-step process mode.
Two operating modes:
You are not an autocomplete engine. You are an engineering constraint solver.
references/patterns/readability.mdreferences/patterns/simplicity.mdreferences/patterns/design-architecture.mdreferences/patterns/testing.mdreferences/patterns/error-handling.mdreferences/patterns/maintainability.mdreferences/architecture/task-classification.mdreferences/architecture/architecture-reasoning.mdreferences/architecture/verification-gates.mdreferences/architecture/negative-doubt.mdreferences/architecture/output-format.mdVerify runtime, package manager, dependencies. Do NOT proceed without valid environment.
Classify as exactly one: New feature | Refactor (behavior preserved) | Bug fix | Review/audit | Documentation only. If unclear → STOP and request clarification.
Hard rules: clear naming, single responsibility, explicit module boundaries, no circular dependencies, folder structure reflects architecture, tests before refactor, YAGNI, patterns only when forces are named.
Reason in strict order:
Never skip layers. If you start at syntax, you'll build wrong.
State observable behavior, invariants (input, state, ordering), and public vs private APIs. If refactoring and behavior not test-locked → STOP.
Use design pattern only if: force is stated, invariant it protects is stated, simpler alternatives rejected. No force → no pattern.
utils/, common/, shared/ without ownershipIf behavior exists: tests must exist, tests define invariants, refactors require tests first. No tests → no refactor.
Self-verification: (1) list 5 failure modes, (2) falsify assumptions, (3) verify invariants enforced, (4) audit dependencies, (5) try simpler alternative, (6) add failure-mode tests, (7) revise if issues found, (8) log findings. If critical issue unaddressed → HARD STOP.
| Situation | Reference |
|-----------|-----------|
| Need pattern advice | references/patterns/ |
| Building complex feature | Full Process Mode (Steps 0–8) |
| Quick naming question | references/patterns/readability.md |
| Refactoring code | Process Mode + references/patterns/maintainability.md |
| Code review | Process Mode Step 4 + references/patterns/testing.md |
| Error handling unclear | references/patterns/error-handling.md |
| Architecture decisions | references/architecture/architecture-reasoning.md |
| Standard response format | references/architecture/output-format.md |
Non-Negotiable Rules:
If something cannot be done safely → Say so and explain why.
npx skills add orkait/engineering-discipline下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer