ln-62-repository-publisher
Validates, commits, pushes, and remotely verifies approved repository changes. Use when publication is requested; not for releases, package publishing, or announcements.
git clone --depth 1 https://github.com/levnikolaevich/claude-code-skills /tmp/ln-62-repository-publisher && cp -r /tmp/ln-62-repository-publisher/plugins/maintainer-suite/skills/ln-62-repository-publisher ~/.claude/skills/ln-62-repository-publisherSKILL.md
# Repository Publisher **Goal:** Publish only changes the user has authorized, then verify the result from the remote source. **Execution contract:** Treat the ordered checkbox workflow below as this skill's Definition of Done. Track every checkbox as `PENDING`, then resolve it to `PROVEN` with concrete evidence, `CLEARED` with evidence that its conditional trigger is absent, or `UNPROVEN`; reading, mentioning, delegating, skipping, or tool failure is not proof. Before returning, resolve every `PENDING`, count only `PROVEN` and `CLEARED` items as complete, apply this skill's verdict, decision, and approval rules to every `UNPROVEN`, and prepend **Checklist: X/Y complete**<br>**Incomplete: None | section/item — reason; outcome impact; exact next action**; list every `UNPROVEN` item. ## Tool Routing | Need | Preferred capability | Fallback | |---|---|---| | Scope, staging, history, and synchronization | Native Git CLI | Stop if equivalent Git evidence is unavailable | | Repository validation | Project-native commands and installed validators | Documented manual checks | | Remote branch and CI state | Authenticated hosting CLI or connector | Git remote evidence plus direct workflow URLs | | Clean-source verification | Temporary clone and isolated host configuration when distribution surfaces changed | Remote raw files plus `BLOCKED` for required install evidence | | Static-site verification | Deployment workflow plus direct HTTP request | Hosting API deployment state | | Current marketplace behavior | Official host documentation | Mark assumptions and avoid destructive retries | Prefer compact Git output first, then open the full diff for files that will be staged. Never pipe commands in a way that hides the failing exit code. Use hosting APIs for remote facts and Git for repository facts. Local distribution or deployment state cannot prove that a remote consumer update works. ## Checklist - [ ] Confirm the user explicitly requested a commit and push and identify the intended branch. - [ ] Read repository instructions, release rules, and the current branch policy before mutation. - [ ] Check `git status -sb`, staged and unstaged diffs, untracked files, remotes, and recent commit style. - [ ] Identify unrelated user changes; do not stage them without explicit whole-worktree authorization. - [ ] Inspect deletions and generated files as carefully as edited text. - [ ] Check whether behavior, installation commands, catalogs, layout, or the public site require matching documentation updates. - [ ] Do not create a changelog merely because one is absent; follow the repository's documented release policy. - [ ] Do not change versions, tags, or release metadata during an ordinary publication unless the request or repository policy explicitly includes them. - [ ] For marketplace edits, confirm every stable identifier is unchanged unless an intentional migration was approved. - [ ] When multiple host catalogs exist and repository policy requires parity, confirm they contain the same distribution units in the required order. - [ ] When metadata is duplicated across manifests or catalogs, confirm descriptions and source paths agree with the canonical source. ## Validation Routing - [ ] Discover and run repository-native validation commands before generic checks. - [ ] For changed skills, run repository-required or host-native skill validators, or perform their documented manual fallback. - [ ] For changed plugins or packages, run repository-required validators, or perform their documented manual fallback. - [ ] Run every host-native strict validator whose distribution surface exists and changed or is required by repository policy. - [ ] Run only the catalog parity, manifest parsing, stale-reference, local-link, and whitespace checks required by the repository and affected surfaces. - [ ] Run only relevant product tests; do not invent a heavyweight release gate absent from repository policy. - [ ] Stop before commit on a confirmed failing required check unless the user explicitly accepts the failure. - [ ] Record skipped checks with the exact missing dependency or environment. ## Synchronization and Commit - [ ] Fetch the target remote and compare local HEAD with the remote branch before committing. - [ ] If histories diverge, stop and report the commits on both sides; do not force-push or rewrite history implicitly. - [ ] Stage explicit paths when the worktree is mixed; use whole-worktree staging only when the user approved all changes. - [ ] Review the cached diff and diffstat after staging. - [ ] Remove secrets, local caches, temporary artifacts, and unintended credentials from the staged set. - [ ] Match the repository's commit-message convention and summarize the entire staged change. - [ ] Do not add an automated co-author or signature unless repository policy or the user requests it. - [ ] Create the commit and capture its full SHA. - [ ] Push to the authorized branch without changing branch protections or using force. ## Remote Verification - [ ] Confirm the remote branch resolves to the pushed commit using both Git and the hosting API when available. - [ ] Watch required CI runs for that commit until completion; report direct run URLs and failures. - [ ] If the static site changed, wait for deployment and verify live content with a cache-busting request. - [ ] If installation or marketplace content changed, clone an authorized consumer-accessible remote into a clean temporary directory and validate the affected distribution surface. - [ ] When install or update behavior changed, test at least one affected package or plugin from its documented distribution source in isolated host configuration. - [ ] When stable distribution identifiers or versions exist, verify the installed artifact resolves under the expected identifier and version. - [ ] Keep temporary host configuration isolated from the user's active settings and remove it safely afterward. - [ ] Recheck the local worktree an
Creates a project baseline of architecture drivers and constraints. Use before design or planning; not for target design, plan review, implementation, or architecture audit.
Documents implemented current-state architecture from repository evidence. Use for onboarding or migration baselines; not for target design, audit verdicts, or code changes.
Creates a decision-complete target system design from requirements and constraints. Use before implementation planning; not for requirements baselines, reviews, audits, or code changes.
Records one architecture decision with context, alternatives, tradeoffs, and consequences. Use for a significant choice; not for broad design, audit, or implementation.
Creates evidence-backed current or target architecture diagrams when the diagram is the primary deliverable. Not for UI design, architecture audit, or invented structure.
Plans a reversible architecture migration with compatibility, data movement, rollout, and rollback. Use for current-to-target transitions; not execution, generic planning, or delivery review.
Audits documentation and code comments for structure, coverage, factual accuracy, and maintainability. Use for documentation trust reviews; not code, test, or architecture audits.
Audits cross-cutting code health across security, delivery, maintainability, dependencies, diagnosability, concurrency, and lifecycle. Use when no specialist audit is primary.