Software Development Discipline and Code Quality Guard
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md and install @user_9608010a/dev-discipline.
About this skill
Problem
AI-assisted coding risks are often not syntax errors, but misunderstood intent, out-of-scope edits, and surface patches. A bug fix may change unrelated functions, a feature request may skip confirmation before touching core logic, and the result is hard to review or roll back. This skill turns code changes into a confirmable, verifiable, and traceable engineering workflow.
How It Works and Where It Applies
It works around collaboration rules and code quality:
- Confirm before executing: restate the request, list affected files, break the work into tasks, and flag risks; no code is written before user approval.
- Control edit boundaries: change only in-task code and required follow-on fixes; record extra issues instead of refactoring casually.
- Back up critical changes: payments, orders, auth, schema/data changes, or multi-file edits should be backed up under _backup/date-task/.
- Prefer root causes: trace the call chain, avoid masking abstraction errors with patches, and extract shared logic when duplication appears.
- Stay consistent: follow existing naming, error handling, and security patterns, and avoid adding dependencies without approval.
Use it for coding, bug fixes, feature work, refactoring, and source file changes. Single-line fixes, pure config values, urgent fix-first incidents, or explicit "just change it" requests may relax confirmation, but minimal edits and a REVIEW self-check are still expected.
Use Cases
- Before fixing an order bug, require scope confirmation, core-file backups, and root-cause tracing instead of patches.
- Add list pagination, batch timeouts, and index planning to an existing SaaS query path to avoid unbounded loads.
- Refactor a 500-line order module by responsibility and unified error handling, without touching unrelated page styles.
- When the user rushes a code change, declare risks, list the task checklist, execute after confirmation, and log extra issues.
Best For
- Backend engineers maintaining payment, order, or auth logic who require confirmation and backups before changes.
- Tech leads integrating AI into legacy codebases who need limits on out-of-scope edits and new dependencies.
- Full-stack engineers debugging and refactoring who want root-cause fixes and consistent error handling first.
- Engineering managers reviewing AI output who require transparent checkpoints and a pre-completion self-check.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.