Project guardrails

From KRISACHAN/ying-practice · View interactive version

Project guardrails is an AI agent skill from the GitHub repository KRISACHAN/ying-practice. Establish or audit durable engineering guardrails for an existing code project: AI instructions, architecture boundaries, verification rules, code-comment/documentation conventions, and enforceable quality gates. Use when onboarding a project to AI coding or when its engineering rules are missing, s

How to use this skill

Skill file

Project Guardrails

Create a durable project engineering profile that later AI work can discover and obey.

Read the shared defaults first:

Scope

Inspect the repository's existing sources of truth before adding anything:

Existing explicit project rules outrank this skill group's defaults.

Workflow

  1. Discover — map current engineering instructions, architecture docs, code-comment conventions, verification commands, and hard gates.
  2. Assess gaps — identify missing/contradictory/stale rules, architecture boundaries that exist only implicitly, weak code-level semantic context, and claims that are not executable.
  3. Define the profile — document project purpose, major app/package/module responsibilities, dependency rules, code-quality expectations, code-comment expectations, documentation navigation, and verification matrix.
  4. Improve instructions — create/update repository and scoped AI instructions only where they add real local value. Keep them short and navigable.
  5. Define structured code-comment expectations — comments should help humans/AI understand purpose, capability, responsibility, boundary, contract/invariant, lifecycle/side effects, and tradeoffs where code alone is insufficient. Do not set comment-count quotas or reward syntax narration.
  6. Define engineering-document roles — README, AGENTS, ADR, architecture indexes, requirements/specs, and focused module docs must have clear ownership and avoid parallel sources of truth.
  7. Prefer executable constraints — when a rule can safely be enforced with existing lint/type/structural test/CI infrastructure, prefer that over prose-only policy.
  8. Do not break the project to enforce ideals — if a new hard gate would fail large amounts of existing code, record it as staged debt/target unless the user explicitly authorizes a cleanup campaign.
  9. Verify — run the narrowest checks needed to prove documentation/config changes are internally consistent.

Guardrail Content

The profile should make these discoverable:

Boundaries

Output

Summarize what was discovered, what guardrails were added/changed, what remains advisory, verification performed, and intentionally deferred governance debt.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.