factory-monitor
Skill2 starsChanged 4 months agoMITView on GitHub
Scheduled health sweep that closes the factory loop - reads CI failures, recent commits, dependency and security advisories, and live queue labels, then files issues and writes an immutable run record. Use for the nightly or weekly monitor routine.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- uiverify/factorytheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- uiverify/factory★ 33same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- factory-implementSkill
- factory-monitorSkill
- factory-specSkill
- factory-statusSkill
- factory-triageSkill
- factory-tuneSkill
- factory-verifySkill
- factory-implementSkill
- factory-specSkill
- factory-triageSkill
- factory-verifySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read docs/factory/CONTRACT.md and docs/factory/CHARTER.md first.
- Distinctive: line 18
Run each of these. Where a check is not applicable to this repo, say so rather than silently skipping it.
- Very specific: line 26
2. Gate health: Run ./.claude/scripts/gates.sh deep on the default branch.
- Very specific: line 30
Treat MISCONFIGURED as a factory-blocking finding.
- Very specific: line 77
Use blocks-factory only for red gates on the default branch or a full review queue.
- Very specific: line 82
Write one unique monitor run record under docs/factory/runs/:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Factory monitor
This is the stage that closes the loop. Without it a factory only processes work a human remembered to file, which means the backlog reflects attention rather than reality.
You file issues. You do not fix anything. Mixing detection and repair in one run means a bad detection becomes a bad commit before anyone sees it.
Read docs/factory/CONTRACT.md and docs/factory/CHARTER.md first.
Sweep
Run each of these. Where a check is not applicable to this repo, say so rather than silently skipping it.
1. CI failures. Failed runs on the default branch since the last sweep. For each, identify the failing job and whether it is a genuine regression or a flake. A test that failed once and passed on rerun is a flake finding, not a bug finding, and it is worth tracking separately because flakes are what erode trust in the gates.
2. Gate health. Run ./.claude/scripts/gates.sh deep on the default branch. A gate
that is red on main means every downstream verdict this week was measured against a
broken baseline. This is the highest-priority finding the sweep can produce.
Treat MISCONFIGURED as a factory-blocking finding. Also report optional skips so a human
can decide whether they should become required.
3. Dependencies and advisories. New security advisories affecting direct dependencies. Group by severity. Do not file an issue per transitive dependency; that is noise that trains people to ignore the sweep.
4. Queue staleness. Query live GitHub labels and issue timestamps. Use QUEUE.md only
as supporting history:
in-progresswith no new commit or run record for 2 hours → flag the deterministic claim branch for human recovery; do not delete or take it over automaticallyawaiting-reviewfor more than 7 days → the human review queue is the bottleneck, and per the charter'sSTOP_IFthe factory should be throttling intakewait-to-implementwhose named blocker has since resolved → promote itneeds-infowith an answer now in the issue comments → send back to triage
5. Comprehension drift. Files changed by the factory more than 5 times in the last 30
days with no corresponding update to their documentation or to docs/factory/DECISIONS.md.
These are the places where the code has moved and the written understanding has not, which
is where the next surprise comes from.
6. Charter gaps. Anything triage flagged as not covered by CHARTER.md. Collect them
into a single issue for a human decision rather than one issue each.
Filing
For each genuine finding, file a GitHub issue with the factory:monitor label. Before
filing, search open issues for a duplicate; a monitor that refiles the same issue weekly
gets muted, and a muted monitor is worse than none.
Issue body:
**Detected:** <date> by factory-monitor
**Category:** ci-failure | gate-health | advisory | queue-staleness | comprehension-drift | charter-gap
**Severity:** blocks-factory | high | medium | low
**What**
<one paragraph>
**Evidence**
<log excerpt, gate line, commit range - the actual artifact, not a description of it>
**Suggested disposition**
ready-to-implement | ready-to-spec | needs-infoUse blocks-factory only for red gates on the default branch or a full review queue. Those
two conditions mean the factory should stop producing, and the severity should say so.
Report
Write one unique monitor run record under docs/factory/runs/:
- one line per finding with its issue link
- the current queue depth by disposition
- the review-queue depth, called out separately, because that is the number that actually constrains the factory
- what you checked and found clean, so the absence of findings is distinguishable from the absence of checking
That last point matters more than it looks. A silent monitor is ambiguous between "nothing is wrong" and "the sweep did not run", and those need very different responses.
What you never do
- Fix anything, including one-line fixes that look obviously safe
- File more than 10 issues in a run. If you found more, file the top 10 by severity and say how many you dropped. Never silently truncate.
- Reopen or comment on issues a human closed
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
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.

