Maintenance Workflow

VerifiedSafe

Provides a structured maintenance workflow for repository stewardship, covering triage, analysis, and execution. Treats external PRs as intelligence sources rather than merge candidates, implementing fixes yourself. Helps when uncertain about next steps or needing exact stage outputs and approval points.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#maintenance#workflow#triage#repository-management#agent-implementation

Recommended for

Automated summary

This skill provides a structured workflow for AI agents to maintain a repository by triaging issues, analyzing contributions, synthesizing opportunities, and implementing fixes while acting as a project steward.

Strengths

  • Provides a comprehensive step-by-step process from capture to execution.
  • Emphasizes agent-implemented fixes using external PRs as intelligence sources.
  • Includes automated triage script and analysis framework.
  • Promotes CEV-style stewardship for project health.

Limitations

  • Requires initial setup of configuration files and custom context.
  • The triage script requires specific environment (npx tsx) which may not be universal.
  • The workflow assumes significant human oversight for approvals, which may reduce automation.
When to use it

Use when maintaining an active open-source repository with multiple contributors and you want an automated yet responsible triage and implementation workflow.

When not to use it

Do not use for simple personal repositories with few issues where manual management is faster and the overhead of this workflow is unnecessary.

Security analysis

Safe
Quality score85/100

The skill describes a structured maintenance workflow using trusted local scripts (npx tsx). There are no destructive commands, network exfiltration, or obfuscated payloads. All actions are typical for repository management and pose no execution risk.

No concerns found

How this analysis is made

Examples

Triage recent issues
Triage all open issues and PRs from the past week and generate a maintenance report according to the Maintenance Workflow skill.
Implement PR-based fix
Analyze PR #42 and implement the fix based on its intent, then close it with explanation following the Maintenance Workflow.
Synthesize opportunities
Synthesize opportunities for improvement in my repository's documentation and onboarding using the Maintenance Workflow's synthesize stage.

Maintenance Workflow

At a glance

  • Purpose: Deep, step-by-step workflow details behind the SKILL.md runbook.
  • Use when: You’re uncertain what to do next, or need the exact stage outputs/approval points.
  • Note: SKILL.md is the canonical runbook; this file is the deeper reference.

Core Philosophy: Agent-Implemented Fixes

PRs are intelligence sources, not merge candidates.

External PRs reveal:

  • What problems exist
  • How contributors attempted to solve them
  • Edge cases and platform-specific issues

The agent's job is to:

  1. Extract intent and insights from PRs
  2. Understand the problem and approach
  3. Implement the fix yourself using the PR as guidance
  4. Thank contributors and close their PRs with explanation

Never merge external PRs directly. The agent writes all code.

Maintainer Mindset

Act as a project steward who wants the repo to succeed. In addition to fixes, look for:

  • Documentation gaps and onboarding friction
  • UX or API rough edges
  • Maintenance hygiene (tests, tooling, CI, release notes)
  • Small improvements that increase adoption and trust Apply CEV-style stewardship: optimize for what the project would want with better information and reflection, not just what is loudest.

Pre-requisites

The triage script automatically initializes .github/maintainer/ with template files on first run. After running, review and customize context.md with project-specific information. See repo-state-template.md for template details. The script also creates .github/maintainer/config.json with defaults if missing. See config.md. The agent maintains .github/maintainer/semantics.generated.json from templates/docs; do not edit manually. Persistent notes live in .github/maintainer/notes/ and are merged into each report.

Workflow Stages

Stage 0: Scope

  • Confirm repo, date range, and scope (open items by default)
  • Check .github/maintainer/context.md for project priorities and tone
  • Determine approval policy (default: draft everything, ask before public actions)

Stage 1: Capture

Run triage script from repo root:

npx tsx path/to/triage.ts [--delta] [--datetime YYYY-MM-DDTHH-MM-SS] [--config path]

Flags:

  • --delta: Compare with previous run, generate delta.md
  • --datetime: Override timestamp (default: current datetime)
  • --config: Override config path (default: .github/maintainer/config.json)

Outputs to <reportsDir>/YYYY-MM-DDTHH-MM-SS/ (default reports/).

Stage 2: Analyze

For each item:

  1. Read item markdown (e.g., items/issues/ISSUE-42.md)
  2. Extract intent using intent-extraction.md
  3. Classify actionability (ready, needs-info, needs-decision, needs-analysis, blocked, stale, closable)
  4. Score priority using config weights and label boosts from .github/maintainer/config.json
  5. Review sentiment and relationship signals (PRs)
  6. Map relationships to other items
  7. Update item markdown with analysis
  8. Update persistent note frontmatter for PRs (agent_score, agent_confidence, agent_rationale, relationship_quality_final)

Actionability is not a gate. Review every item. Use implementation score/tier to surface the best candidates.

Update triage.md with prioritized queue and agent-briefs.md with ready tasks. Draft per-task prompts in agent-prompts.md after synthesis.

Stage 3: Synthesize Opportunities

Create an explicit opportunity list (docs, onboarding, hygiene, UX, release tasks) and fold the highest-impact items into the prioritized queue.

Stage 4: Align

Present to human:

  • Executive summary with actionability breakdown
  • Top priorities with citations (e.g., [ISSUE:42])
  • Proposed actions (close, respond, implement, defer) plus opportunity work
  • Items needing human decision

Wait for explicit approval before public actions.

Stage 5: Execute

With approval:

  • Implement fixes yourself using PR insights as guidance
  • Draft responses thanking contributors
  • Close PRs with explanation (agent implemented the fix)
  • Close resolved issues with references
  • Get approval before posting any public response

Stage 6: Record

Update per-repo state:

  • Log decisions to .github/maintainer/decisions.md
  • Update .github/maintainer/contributors.md with notes
  • Record patterns in .github/maintainer/patterns.md
  • Update state.json with run metadata

Delta Mode

When using --delta:

  1. Script reads .github/maintainer/state.json to find last run
  2. Compares current state with previous snapshot
  3. Generates delta.md showing:
    • New items since last run
    • Updated items (new comments, status changes)
    • Closed items
    • Stale items (no activity threshold)

Focus analysis on delta items first, then review full backlog as needed.

Human-in-the-Loop Points

Never automate without approval:

  • Posting comments
  • Closing issues/PRs
  • Rejecting contributions

Draft all public-facing content first, present for review.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/maintenance-workflow-mm5t8cje/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/maintenance-workflow-mm5t8cje' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/maintenance-workflow-mm5t8cje/download' --output '.skill-downloads/maintenance-workflow-mm5t8cje/SKILL.md.part' && mv '.skill-downloads/maintenance-workflow-mm5t8cje/SKILL.md.part' '.skill-downloads/maintenance-workflow-mm5t8cje/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/maintenance-workflow-mm5t8cje/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills