Index of every page on this site: llms.txt
All skills
Run it yourself

Check a change after it merges: CI on the default branch, the deploy, the error sources the repo names, and the PR's own evidence rerun against the shipped build. Turn anything broken into a regression issue that feeds back into triage. Use when a factory PR has just merged, when asked "did it deploy", "is main green", or "check production", or when a CI failure lands on the default branch.

Use this Skill: https://skilld.dev/gh/aditya-deokar/software-factory/release-monitoring

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈103 tokens for metadata: the name and description. ≈962 when used: this file.

Description uses 5.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈414 characters, or 5.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Release monitoring

Work in the factory does not end at merge. A change can pass review and CI on its branch and still break the default branch (merge skew), fail to deploy, or fail for real users. This beat looks once, on purpose, and feeds what it finds back into intake. It is a check, not a vigil.

Default tier: fast. Every step is reading status.

When it runs

  • Right after a factory PR merges, if you are still in the session.
  • From factory-monitor.yml when CI fails on the default branch (see factory-setup).
  • When a person asks whether something shipped.

Skip it when .factory/config.json has beats.monitor: false.

The checks, in order

Stop at the first failure and go to "When something is broken".

  1. CI on the merge commit.
    SHA=$(gh pr view <pr> --json mergeCommit --jq .mergeCommit.oid)
    gh run list --commit "$SHA" --json name,status,conclusion,url
    If runs are still going, wait with a bound instead of polling in a loop: gh run watch <run-id> --exit-status, within monitor.watch_minutes from the config (default 30). Past that, record pending and stop.
  2. Deploy, if the repo deploys from the default branch.
    gh api "repos/{owner}/{repo}/deployments?sha=$SHA" --jq '.[0].id' \
      | xargs -I{} gh api "repos/{owner}/{repo}/deployments/{}/statuses" --jq '.[0].state'
    success is not behavior proof. It only means the deploy finished.
  3. The PR's own evidence, against the shipped build. If the PR's evidence was a command (a curl, a CLI call, a query) and it is cheap and safe to run against the deployed environment, run it again and compare it with the PR's "after". Never run write operations against production for this.
  4. Error sources named in AGENTS.md, filtered to the time since deploy: the error tracker, logs, or crash reports. Look for new error types, not for the total count.

No monitoring sources in AGENTS.md and no deploy? Then step 1 is the whole check. Say so plainly instead of implying more was checked.

Recording the result

node "$LEDGER" beat <run-id> monitor --set status=clean
node "$LEDGER" finish <run-id> --outcome merged

status is clean, regression, pending (ran out of watch time), or skipped (switched off, or nothing to check). The run id is on the PR's Run: line, and $LEDGER is resolved as shown in run-ledger.

When something is broken

  1. Check it is new. Did the same check fail on the commit before the merge? gh run list --branch <default> --limit 5. A failure that predates the merge is not this PR's regression; say so and link the earlier run.
  2. Open one issue, after searching for an open one about the same failure:
    gh issue list --label factory:regression --state open --search "<workflow or error>"
    gh issue create --label factory:regression \
      --title "Regression after #<pr>: <what broke>" \
      --body "<failing run URL or error excerpt>
    
    Merged in #<pr> (<sha>). Last good: <run URL>. Evidence from the PR: <link>."
  3. Record it: beat <run-id> monitor --set status=regression --set issue=<n>.
  4. Hand it to triage. The new issue goes through issue-triage like any other. Do not hot-fix it in the same breath. Revert first if the break blocks other people, and say that you did.

Do not do these

  • Do not leave a watcher running. Every wait has a bound, and the beat ends with a recorded status, even pending.
  • Do not call a green deploy "verified". A deploy status says the deploy finished, not that the feature works.
  • Do not open a second issue for a known failure. Comment on the open one with the new occurrence.
  • Do not monitor what you were not asked to. One PR, its merge commit, the sources the repo names.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings1mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub1mo

    The skill instructs the agent to re-run commands found within Pull Request evidence and read configuration from external files, creating a significant attack surface for command injection and indirect prompt injection. A malicious contributor could craft a Pull Request containing harmful commands that the agent would then execute against the deployment environment.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 546bbff. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
What it can do
Runs commands
metadata
{
  "author": "software-factory",
  "version": "1.0"
}
All 1 allowed tools
Bash(gh run *) Bash(gh api *) Bash(gh issue *) Bash(gh pr view *) Bash(git:*) Bash(node:*)
Other metadata
compatibility
Needs git and an authenticated gh CLI for CI, deployment, and issue checks. Error-tracker checks use whatever CLI or URL the repo's AGENTS.md names. Records results with run-ledger when the repo has .factory/.

README badge

README badge for aditya-deokar/software-factory/release-monitoring