name: align description: Bootstrap or align projects to strict quality standards argument-hint: [project-type or preferences] allowed-tools: Bash, Read, Write, Glob, Grep, Edit
Align
Audit and enforce project baseline standards from agents/AGENTS.md using canonical templates under agents/skills/align/references/, including the canonical repo-level agent-doc template at agents/skills/align/references/templates/AGENTS.md.
How to Use
/align- full audit + fix pass for current project/align <project-type>- enforce variant-specific rules (svelte,next,monorepo,go,cli)/align dry-run- report only, no file mutations
Arguments
Optional: $ARGUMENTS
- project type override:
svelte | next | monorepo | go | cli - scope limiter:
only scripts - dry run:
dry-run
Workflow
- Detect project type and package/runtime context.
- Load canonical references from
references/index.mdandreferences/templates/AGENTS.mdwhen aligning root agent documentation. - Audit existing config files and root agent docs against policy and templates.
- Report drift (missing files, invalid patterns, rule violations).
- Apply minimal corrective edits while preserving valid project-specific intent.
- Install missing tooling dependencies required by configured scripts.
- Initialize
.huskyhooks when absent. - Run available quality checks.
- Report changed files, unresolved gaps, and next actions.
Canonical Sources
- Primary:
agents/skills/align/references/index.md - Agent docs template:
agents/skills/align/references/templates/AGENTS.md - Templates:
agents/skills/align/references/templates/ - Variants:
agents/skills/align/references/variants/ - Remote fallback:
https://github.com/u29dc/dot/tree/main/agents/skills/align/references
Standards Contract
package.json
- MUST enforce field order:
name > version > type > private > workspaces > repository > scripts > devDependencies > dependencies - MUST enforce script namespace
util:*. - MUST include
preparehook for husky when hooks are used. - MUST set typecheck script:
- default:
bunx tsgo --noEmit - svelte default:
bunx svelte-kit sync && bunx tsgo --noEmit && bunx svelte-check --tsconfig ./tsconfig.json
- default:
- SHOULD preserve existing compatible variants (
svelte-check-rs, custom tsconfig).
Core config files
- MUST align
commitlint.config.jswith conventional base + scoped rules. - MUST align
lint-staged.config.jsto run full quality gate. - MUST align
biome.jsonto extend global config. - MUST align
tsconfig.jsonstrict-mode baseline and alias contract. - MUST align
.gitignorebaseline patterns. - MUST align
.husky/pre-commitand.husky/commit-msghooks.
AGENTS.md
- MUST treat
templates/AGENTS.mdas the canonical root agent-doc template. - MUST keep root agent docs repo-wide, concise, and operational.
- SHOULD mirror to
CLAUDE.mdonly when needed for tool compatibility. - SHOULD keep
README.mdhuman-facing unless the repository is intentionally agent-first. - SHOULD move subtree-specific guidance into nested
AGENTS.mdfiles or linked docs near the code.
Safety Rules
- MUST preserve valid project-specific configuration unless explicitly overridden.
- MUST avoid destructive resets and unrelated file rewrites.
- MUST report before/after intent in dry-run mode.
- SHOULD infer scope enums from repository structure and commit history.
- SHOULD prefer small, reviewable edits over full-file replacement when practical.
Quality Standards
- No unresolved template placeholders.
- No broken config syntax after updates.
- All aligned files trace back to canonical references.
- Drift report includes exact file-level diffs or rule-level findings.
- Skill text remains policy-focused; template payloads stay in
references/.