agentleFS
TradebaasTradebaas/Groundwork/.agents/skills/maintain/SKILL.md

maintain

Skill2 starsChanged 3 months agoMITView on GitHub

Keep a shipped product healthy: monitoring, updates, incidents, debt, periodic audits, retirement. Use after first production release, on a maintenance session, when dependencies need updating, when something broke in production, to harvest defer: markers into the debt ledger, or when a product, environment or integration is being retired and its data and access must actually go.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use office-hours, learn and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ex3ndrSkill

    office-hours

    MANUAL TRIGGER ONLY: invoke only when user types /office-hours. YC Office Hours — two modes. Startup mode: six forcing questions that expose demand reality, status quo, desperate specificity, narrowest wedge, observation, and future-fit. Builder mode: design thinking brainstorming for side projects, hackathons, learning, and open source. Saves a design doc. Use when asked to "brainstorm this", "I have an idea", "help me think through this", "office hours", or "is this worth building". Proactively suggest when the user describes a new product idea or is exploring whether something is worth building — before any code is written.

    Also in 4 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 4 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    The data goes, per the record: Every purpose in docs/compliance/REGISTER.md's processing record names a retention period.

    line 92

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

maintain: the product is now a running system

Maintenance sessions still follow the session protocol: STATE.md first, one task, state updated. Maintenance is scope-bound too; "while maintaining" is not a license to rebuild.

Observability: you cannot maintain what you cannot see

First maintenance session: confirm the minimum exists, or create it and record it in docs/operations/monitoring.md:

  • Errors are captured somewhere a human looks (error tracking, log alerts, per stack).
  • The critical flow has a heartbeat: you find out it broke before the user tells you.
  • Failure of background jobs/integrations is visible, not silently swallowed. The studied production system's worst bugs were invisible failures marked "done".

The maintenance loop (each session, in this order)

  1. Signals: errors, alerts, intake since last session. Triage bugs (fix + regression test) from wishes (INTAKE.md → scope).
  2. Dependencies: audit for known vulnerabilities (blocking; fix now), then routine updates in small, verified batches: never a big-bang upgrade with feature work mixed in. On a platform stack (the stack file's header declares a hosted platform) the audit has the same job and different subjects: connectors and the permissions they carry, installed managed solutions and store apps, plugins and custom code registered in the instance, and the vendor's own release and deprecation notices. Those last ones move on the vendor's schedule rather than yours, which is what makes a platform go stale while every project file sits untouched. The installed design method is a dependency too, and the only one whose manifest is Groundwork's own config: this is the only place its two recorded versions move. It has two because its npm package is a launcher that downloads the method's content at install time, so the package version fixes the launcher and its engine binary while the content arrives at whatever the current release is. The consequence to work with: re-installing can change the method even when nothing in this repo changed. So treat an install as a version bump every time. Run node checks/design-method.mjs --install, read which content landed, exercise one interface change end to end, then record that number as contentVersion in the thirdParty entry of checks/config.json. Until it is recorded, the enforcement line at the top of node checks/check.mjs keeps reporting that the payload is not the verified one, which is the whole point: the change cannot be prevented here, so it is made impossible to miss. Note the move in STATE.md. Read the release notes for a rule that was dropped: decision 0020 credits rules to that method, and one that disappears upstream comes back into a Groundwork file rather than being forked there. A content jump across a major is its own unit of work, verified like any other, never folded into a routine batch.
  3. Debt harvest: grep -rn "defer:" --exclude-dir=.git . → reconcile with DEBT.md. Flag markers whose upgrade trigger has fired, and no-trigger markers (those rot silently). Paying debt is a proposed, owner-approved task like any other.
  4. Drift check: node checks/check.mjs + spot-check that STATE.md, BRIEF and reality still agree. Docs describing a system that no longer exists → fix + denylist.
  5. Success metrics: a read date in BRIEF's measurement plan that has passed gets read now, and the number written next to its criterion in BRIEF, dated. Nothing due, nothing to do. Measured below target is a finding for scope, not a defect for debug: the capability works, the value did not arrive.

Incidents

Something is broken for real users: fix first, understand fully, then improve. Open docs/operations/incident-response.md alongside step 1: its notification clocks (AP, NCSC-NL, ENISA) count from the moment of awareness, not from the fix.

  1. Stabilize (rollback per runbook is a fine fix). 2. Root cause: the actual one, not the first plausible one. 3. Regression test. 4. Ten-line post-mortem in docs/operations/: what, impact, cause, fix, what now detects it earlier. No blame, no essay.

Periodic audit (quarterly, or before major phases)

One focused pass: security posture, compliance register still current (comply), the specs at done read against the running product (a criterion the product no longer meets reopens its spec; the record never outranks the code), retention honored while running (the oldest record per purpose sits inside its period, and the deletion job actually ran), backup restore proven again (a restore you haven't run this quarter is a rumor), unused code/deps (stack dead-code tooling), skill library still curated, STATE.md log rotated.

The stack standards file ages the same way the compliance register does. Its header carries the date those facts were last verified; when that date is more than a quarter old, or the stack has shipped a major version since, re-verify the file against the vendor's live documentation and re-stamp the header (stack owns how, and its rule that a stack fact from model memory is a rumor with a cutoff). The major-version half fires on the news rather than on the calendar: a release that deprecates what the standards file blesses is worth knowing about in the week it lands, not in the quarter it lands.

Findings → INTAKE/DEBT with severity; fix nothing unasked.

End of life: retiring a product, an environment, or an integration

comply makes two promises that only come due here: the retention periods written in the register's processing record, and deletion that is implemented rather than described. This is where they are kept. Decommissioning is a proposed, owner-approved task like paying debt, never a cleanup done in passing, and it is the one maintenance job whose evidence someone may ask for years later.

  • The data goes, per the record. Every purpose in docs/compliance/REGISTER.md's processing record names a retention period; at end of life each one is deleted, or exported first to the destination the owner agreed. Backups, replicas and analytics copies hold the same personal data and outlive the primary store, so name when they expire too - a deletion proven only against the live database is a deletion visible only from the front.
  • The access goes with it. Credentials, API tokens, service accounts, connectors, webhooks and third-party processor accounts created for this product are revoked at their source, and the processor agreements that covered them are ended. A key nobody revoked outlives the product it belonged to and has no owner left to notice it.
  • Say what happened, where the promise lived. Record per purpose what was deleted or exported and on what date, in the register that carried the retention promise, and note the retirement in STATE.md. An undocumented deletion and a forgotten one look identical afterwards. ⚓

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.