/factory-plugin-advisor:factory-plugin-advisorfrom factory-plugin-advisor
Records friction with the software-factory marketplace plugins (factory, factory-plugin-builder, factory-dev, factory-docs and the rest) and suggests a plugin change once the same issue recurs. Use after working around a software-factory plugin's bug or gap, after doing by hand something one of those plugins should do, when a plugin skill's guidance was missing or wrong, when the user corrects how a plugin was used, and at the end of a task to check for recurring issues worth a fix.
Ships in factory-plugin-advisor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Makes the software-factory plugins improve from use. You record each friction with one of them as it
happens; the CLI groups occurrences of the same issue, and once one recurs it writes a draft
suggestion (which plugin to change, the evidence, a proposed change and a paste-ready /factory:run
request) for the user. Every action goes through this plugin's CLI, run exactly as written below from
any directory. Failed runs of a software-factory plugin's CLI are recorded automatically by this
plugin's hook, so you do not need to record those yourself. A factory command that exits 2
(escalated to a human) is the line working as designed and is not friction.
The log is local to this machine (~/.config/factory-plugin-advisor/, owner-only). The CLI redacts
anything that looks like a token or secret before storing it, but do your part too.
Record one occurrence, right after it happens, when, while using a software-factory plugin:
--kind workaround);--kind manual-step);--kind missing-guidance);--kind user-correction);--kind cli-failure).--plugin is the software-factory plugin involved (for example factory or factory-docs). Prefer
an existing plugin: use a new kebab-case plugin name only when no existing plugin is a sensible home
for the fix, and none when you cannot tell. --summary is one short, general sentence describing
the problem, the same way each time it happens ("factory review refuses a verdict before proof
passed"), so repeats group together; job ids, paths and numbers in it are masked when grouping.
--detail is optional context: what you tried and what worked.
Never put secrets, tokens, cookies, passwords, private keys or private user data (names, emails, private code, transcript text) in a summary or detail. Describe the problem, not the data.
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor record --plugin <plugin> --kind <kind> --summary "<summary>" --json
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor record --plugin <plugin> --kind <kind> --summary "<summary>" --detail "<detail>" --json
It prints {"signature","plugin","kind","summary","count","redacted"}. Do not mention a record to
the user unless they ask; it is bookkeeping.
At the end of a task (or another natural pause), check whether anything has crossed the threshold
(3 occurrences by default; --threshold <n> changes it):
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor suggest --json
It prints {"threshold","suggestions":[...]}, each suggestion with signature, plugin, count,
summary, target, title, draft (the draft's path) and factoryRun. It writes a draft for
each, and will not suggest the same issue again until its count grows by the threshold again. If
suggestions is empty, say nothing. Otherwise tell the user in one or two lines per issue, for
example: "factory-docs keeps failing on X (seen 4 times). I drafted a suggested fix; want to see
it?". If they want it, show the draft and its /factory:run line, which they can paste in a
software-factory checkout to build the change through the factory. Never start a factory run
yourself.
To look at what has been recorded, or at one issue in full (its occurrences are already redacted; a unique prefix of 4+ characters of a signature works too):
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor list --json
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor list --plugin <plugin> --json
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor show <signature> --json
list also takes --min <n> to show only issues seen at least n times.
Only when the user asks for it. kwcantrell/software-factory is a public repository: anyone
can read what is filed there. Always go through these steps, in order.
First, the dry run. It files nothing and prints exactly the title, body and repository that would be filed:
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor file <signature> --json
Then show the user the title and the whole body, remind them that the repository is public, and ask for an explicit yes. Read the body yourself for anything private, and offer to leave it unfiled if in doubt. Anything short of a clear yes means do not file.
Only after that yes, file it. This runs gh issue create, so it asks for permission:
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor file <signature> --confirm --json
It prints the issue's url; give it to the user. The CLI refuses (exit 1) to file a draft that still
holds secret-looking text, a home-dir path, an email address or a linkable @mention (the CLI
masks these when it stores and drafts; one still there was edited in), and never files the same
issue twice. --repo <owner/name> files
somewhere else, such as a fork; ask the user whether that repository is public too.
When the user says an issue is not worth fixing, stop suggesting it (this asks for permission):
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor dismiss <signature> --json
0 success, 1 the command failed, 2 usage error. On a non-zero exit the reason is on stderr; show it to the user instead of guessing. Every command and option:
npx --yes --offline --loglevel=error --package="${CLAUDE_PLUGIN_ROOT}" -- factory-plugin-advisor --help
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kwcantrell/software-factory --plugin factory-plugin-advisor