/skills:alignfrom skills
Audits and aligns a project after changes across code, wiring, tests, CI, config, docs, and workflows. Runs focused quality gates and makes minimal, reviewable fixes for consistency.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For $align --help or $align -h (including native Claude forms), return concise help and stop before
any workflow step. State the purpose and invocation policy. Show exact usage
for every public action. Describe each public action, positional
argument, and flag in one concise line, including -h, --help; say "No
additional public flags" when there are no others. Use only the documented
public interface. For internal or coordinator-only skills, state that boundary
and that no standalone public workflow action exists. After the selected
SKILL.md is loaded, help is report-only: do not call any additional tools,
inspect project state, or modify files, private state, Git, or external systems.
Never expose private helper actions or flags or treat help as workflow
authorization.
Use $align in Codex, /align in Claude Code, or
/skills:align in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Use this skill for safe, end-to-end project alignment and post-change
validation. It coordinates code review as one validation lane; it is not a
replacement for focused code-review requests.
The goal is to make the repository consistent, correctly wired, modular where reasonable, and aligned with the behavior described by its README, design documents, workflows, tests, CLI/help output, and existing implementation.
This is not a broad rewrite skill or an unconditional full-repository scan. Treat it as an audit-first, evidence-driven alignment skill that makes minimal, focused, reviewable changes and finishes with a changed-scope quality gate.
--help outputWhen routed by SDLC, use the exact integration scope and immutable basis. Check
source obligation → REQ → FEAT → delivery slice → task → executed test references,
stable IDs, vertical flow, claimed delivery status and paired-owner publication.
Keep historical lifecycle/instruction drift advisory. Route spec gaps to the root
and maintain-project-specs adapters; do not publish canonical specs directly.
Return changed paths plus affected validation/evaluation/UAT/review gates so the
root revalidates after fixes. This absorbs the former advisory sdlc-align-specs
responsibility; no alias or second phase coordinator remains.
First understand the project contract, then align affected surfaces to that contract.
The contract must come from repository evidence: README files, design or architecture documents, source code, tests, fixtures, CI workflows, Makefiles or task runners, CLI definitions, help output, config schemas, deployment automation, examples, templates, changelogs, and nearby conventions.
Do not invent requirements. Do not assume docs, tests, or implementation are automatically correct. Use current, nearby, working code as stronger evidence than stale prose or isolated examples.
Before proposing fixes, understand the design, data flow, control flow, dependencies, ownership boundaries, and intended runtime behavior.
Before deciding what to align, synthesize the active context:
When align runs after changes, treat it as the final quality gate for the
affected project surface.
Determine changed scope from the latest user request, touched component roots, current diff, staged and untracked files, generated artifacts, and any relevant task state. Separate requested or agent-touched changes from unrelated dirty worktree files; report unrelated dirty files instead of silently absorbing them into the alignment scope. Expand the active scope only to direct dependencies, callers, tests, fixtures, docs, help output, workflows, config, schemas, and examples that define or consume the changed contract.
Stay incremental and fast. Avoid full-repo scanning by default. Broaden only when the change touches shared interfaces, central tooling, security-sensitive surfaces, public contracts, generated artifacts, or an unclear dependency boundary.
Mandatory lanes for the changed scope:
code-review in nested report-only mode, read its quality
rubric for meaningful code changes, and review every changed file or diff
for correctness, maintainability, modularity, performance, and structural
regressions. align owns any safe remediation. The child review must not
edit files, invoke align, or interpret its nested use as a direct
$code-review invocation.linter for Shell, Markdown, and Python surfaces.
Prefer check-only scoped validation first. When using the bundled linter
script as a validation gate, start with --no-fix --no-config-fallback; use
fix mode only when the current align task is already allowed to patch safe
issues. Prefer repository-native no-cache settings and remove only exact
task-created validation artifacts before completion.apply-security and run a changed-scope security review for
infrastructure, deployment, workflow, shell, and application surfaces. Apply
only the low-risk fixes allowed by apply-security's safe auto-fix policy.
Plan first, report, or block on high-risk or externally visible public
exposure, IAM/RBAC, auth, crypto, serialization, database, availability,
credential, or external-route changes that require explicit approval.A request to use align authorizes it to coordinate code-review, linter,
and apply-security as validation lanes inside align's current changed
scope. Keep each child skill's stricter safety and no-auto-fix rules. Use the
nested report-only code-review lane defined above; only align may apply its
resulting safe findings.
apply-security may be selected implicitly outside align; inside align, it
is mandatory. If it is not visible in the initial skills list because of
skill-list budget, installation, or discovery limits, resolve and read its
SKILL.md directly:
../apply-security/SKILL.md.$HOME/.agents/skills/apply-security.After loading apply-security, follow its required-reference rules for the
security lane. If it cannot be found or read, report the security lane as
blocked or skipped with the paths checked; do not report that alignment is
complete.
Default remediation policy is safe-only: fix clear, low-risk issues inside the current changed scope; report blockers and request explicit approval for risky, ambiguous, public-contract, architecture, or security-sensitive changes.
When a parent workflow supplies a finding ledger, preserve its IDs,
classifications, and dispositions as handoff constraints. Do not remediate or
reclassify parent-gated, owner-review, decision-required, or deferred findings
unless the user separately authorizes them. align may repair only other
clear low-risk findings inside the changed scope; its own safe-only policy must
not weaken the parent's stricter exclusion.
For the detailed changed-surface checklist, review focus, wiring checks, and
modularity guidance, read references/quality-gate.md while mapping or
validating the affected scope.
When uncertain, report the uncertainty instead of changing behavior.
code-review, linter, and
apply-security lanes described above. For other subtasks, use additional
skills only when their metadata clearly matches a concrete part of the task,
such as workflow, Helm, shell, Terraform, Python, documentation,
spreadsheet, slide, PDF, or repo-local skill work. Read the relevant
SKILL.md; use the direct apply-security resolution path above when the
security lane is not visible in the initial skill list. Keep scope narrow,
and do not let another skill override these safety rules unless the user
explicitly asked for that behavior. Invoke code-review through the nested
report-only lane defined above.--help or smoke commands for the
touched surfaces. Broaden only when shared contracts, high-risk surfaces,
generated artifacts, or unclear dependency boundaries require it. If the
repo has a CHANGELOG.md, update the active unreleased section when
behavior, commands, workflows, or user-facing docs changed. Check the final
diff for unrelated files, secrets, credentials, private endpoints, and
environment-specific values. Run the nested report-only code-review lane
against the final diff after any align-owned safe repairs. Remove only exact
task-created validation caches, reports, or generated artifacts, then
confirm repository status contains no new validation residue.code-review, linter, and apply-security as changed-scope validation
lanes before considering post-change alignment complete.align; the nested code-review lane returns
findings only.Do not:
When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
When using this skill:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nebius/nebius-ps-services --plugin skills75 skills in this plugin
/agent-nebius-auth-diagnoseRead-only diagnosis for current-session Nebius project discovery, agent authentication, quota reads, profiles, selectors, or auth-hook failures. Use when auth is missing/blocked; never mutate auth or IAM./agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code./ai-stackSelect or review undecided AI components across models, runtimes, training/inference, interoperability, retrieval, evals, safety, and operations. Consume ai-agent-design's frozen agent-subsystem contract; use app-stack for non-AI layers, research for one technology, and design for whole solutions./align-skillAlign existing/scaffolded skills for Agent Skills, Codex, Claude Code, and npx skills installation while preserving functionality, native controls, resources, and evals. Accept local or report-only GitHub sources; use skill-creator for new scaffolds and align for projects./apply-securityReview software, infrastructure, CI/CD, containers, IaC, or design for security risks involving secrets, IAM/auth, exposure, inputs, dependencies, or supply chain. Advise implicitly; patch only when authorized.