boshu2/agentops/skills/pattern-mining/SKILL.md
pattern-mining
Test repeated implementation shapes against independent exemplars and a holdout before routing an earned abstraction. Triggers: "mine a recurring code pattern", "is this abstraction earned", "extract invariants from implementations".
- Source repository stars
- 416
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-05
- Source checked
- 2026-08-05
Decision brief
What it does—and where it fits
Decide whether repeated code demonstrates a reusable rule or only a plausible hypothesis. Similar names and syntax are not enough; the abstraction must survive examples it was not designed around.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/boshu2/agentops --skill "skills/pattern-mining"Inspect the Agent Skill "pattern-mining" from https://github.com/boshu2/agentops/blob/c0f78fddd95ab30f8adadc5e513e27064980a529/skills/pattern-mining/SKILL.md at commit c0f78fddd95ab30f8adadc5e513e27064980a529. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
1. State the candidate pattern and collect independently implemented exemplars with repository anchors. Use research when coverage is unclear. 2. From the exemplars, separate required invariants, legitimate variation points, and incidental similarity. 3. Require at least three d…
State the candidate pattern and collect independently implementedFrom the exemplars, separate required invariants, legitimate variationRequire at least three distinct exemplars before promotion is possible. - 02
Constraints
To prevent lineage copies from faking recurrence, use independently
To prevent lineage copies from faking recurrence, use independentlyBecause the candidate must generalize, form it without seeing the holdout andTo keep weak evidence from becoming architecture, route hypotheses to - 03
Diff/align across exemplars
Invariants are extracted mechanically, not remembered. Lay the exemplars side by side, align them structurally (same role, same position in the flow — not same variable names), and diff: what survives every alignment is a candidate invariant; what varies by site is a variation p…
Invariants are extracted mechanically, not remembered. Lay the exemplars side by side, align them structurally (same role, same position in the flow — not same variable names), and diff: what survives every alignment is… - 04
Explicit search recipes
Exemplar discovery is part of the evidence and must be replayable. Record the exact queries used — rg patterns, glob scopes, structural searches — in the output packet, alongside which hits were kept and why the rest were excluded. A recipe that returns hits you did not examine…
Exemplar discovery is part of the evidence and must be replayable. Record the exact queries used — rg patterns, glob scopes, structural searches — in the output packet, alongside which hits were kept and why the rest we… - 05
Packaging-shape catalog
A promoted pattern lands in exactly one shape, and naming the intended shape before promotion sharpens the holdout test. The catalog, in ascending commitment: no-action (evidence retained, nothing built), checklist line (rule in an existing doc or skill), template (copyable exem…
A promoted pattern lands in exactly one shape, and naming the intended shape before promotion sharpens the holdout test. The catalog, in ascending commitment: no-action (evidence retained, nothing built), checklist line…
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 88/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 416 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- boshu2/agentops
- Skill path
- skills/pattern-mining/SKILL.md
- Commit
- c0f78fddd95ab30f8adadc5e513e27064980a529
- License
- Apache-2.0
- Collected
- 2026-08-05
- Default branch
- main
View the original SKILL.md
Pattern Mining
Decide whether repeated code demonstrates a reusable rule or only a plausible hypothesis. Similar names and syntax are not enough; the abstraction must survive examples it was not designed around.
Constraints
- To prevent lineage copies from faking recurrence, use independently implemented exemplars with repository anchors.
- Because the candidate must generalize, form it without seeing the holdout and back-apply every holdout-driven refinement.
- To keep weak evidence from becoming architecture, route hypotheses to
no-action; only a fully proven promotion may reachoperationalize.
Workflow
- State the candidate pattern and collect independently implemented
exemplars with repository anchors. Use
researchwhen coverage is unclear. - From the exemplars, separate required invariants, legitimate variation points, and incidental similarity.
- Require at least three distinct exemplars before promotion is possible. Form the candidate abstraction without using the holdout.
- Test it against every exemplar, then a separate holdout. Back-apply the refined abstraction to the original exemplars so the holdout fix cannot silently break them.
- Emit
outcome: promoteonly when the exemplar floor, holdout, and back-application all pass. Route that evidence tooperationalize, which decides whether the eventual shape is a skill, gate, library, template, or no action. - Otherwise emit
outcome: hypothesiswithroute: no-action. Keep the evidence bounded and name what additional observation would retest it.
Diff/align across exemplars
Invariants are extracted mechanically, not remembered. Lay the exemplars side by side, align them structurally (same role, same position in the flow — not same variable names), and diff: what survives every alignment is a candidate invariant; what varies by site is a variation point; what varies with no functional consequence is incidental. Work pairwise before generalizing — an "invariant" derived by skimming all exemplars at once is usually the first exemplar's shape with the others squinted into agreement. Stop condition: every line of the candidate abstraction is traceable to a surviving alignment across all exemplars, or it is deleted. The named failure mode is eyeball convergence — declaring similarity from memory of the files rather than from an explicit alignment, which smuggles one lineage's incidentals into the rule.
Explicit search recipes
Exemplar discovery is part of the evidence and must be replayable. Record the
exact queries used — rg patterns, glob scopes, structural searches — in the
output packet, alongside which hits were kept and why the rest were excluded.
A recipe that returns hits you did not examine is unfinished coverage: either
examine them or narrow the recipe and record the narrowed form. The named
failure mode is convenience sampling — mining only the files already in
context, which biases the exemplar set toward one author or one era of the
codebase and fakes independence at step 1. If no recipe can be written that
finds the exemplars, the recurrence claim is unverifiable and the outcome
stays hypothesis.
Packaging-shape catalog
A promoted pattern lands in exactly one shape, and naming the intended shape
before promotion sharpens the holdout test. The catalog, in ascending
commitment: no-action (evidence retained, nothing built), checklist
line (rule in an existing doc or skill), template (copyable exemplar),
library/helper (shared executable code), gate (deterministic check
that blocks). Match commitment to evidence strength: three exemplars and one
holdout justify a checklist line or template; a gate needs demonstrated cost
of violation, not just recurrence. This skill only records the recommended
shape in the packet — operationalize owns the packaging decision. The named
failure mode is shape inflation: routing a barely-promoted pattern straight to
a gate or library because building feels like progress, which turns weak
evidence into architecture the same way skipping the holdout would.
Output Specification
- Artifact directory:
.agents/scratch/pattern-mining/<run-id>/ - Filename convention:
pattern-mining.json - Format:
pattern-mining.v1JSON containing the outcome, distinct exemplars, invariants, variations, incidental details, holdout result, back-application result, and route. - Validation command:
skills/pattern-mining/scripts/validate-output.sh <pattern-mining.json> - Downstream handoff: pass a validated
promoteartifact tooperationalize; retain a validatedhypothesisartifact as bounded evidence withroute: no-action.
Promotion requires at least three distinct exemplars, one separate passing holdout, successful back-application, and at least one invariant. Any weaker packet remains a hypothesis and cannot route to reusable packaging.
The validator is the machine boundary:
skills/pattern-mining/scripts/validate-output.sh <pattern.json>
This skill owns evidence for the pattern. It never creates the reusable artifact itself and never promotes a failed or untested holdout.
Executable behavior: references/pattern-mining.feature.
Quality
- Exemplars are independent and repository-anchored; copied implementations do not inflate the evidence floor.
- Invariants, legitimate variations, and incidental similarities stay distinct through holdout testing and back-application.
- The named validator passes before a promotion reaches
operationalizeor a hypothesis is retained asno-actionevidence.
Do not
- Count copies from one implementation lineage as independent exemplars.
- Hide variation by calling it incidental.
- Route a hypothesis directly to a skill, rule, gate, or library.
Alternatives
Compare before choosing
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
dotnet/skills
maui-dependency-injection
Guidance for configuring dependency injection in .NET MAUI apps — service registration in MauiProgram.cs, lifetime selection (Singleton / Transient / Scoped), constructor injection, Shell navigation auto-resolution, platform-specific registrations, and testability patterns. USE FOR: "dependency injection", "DI setup", "AddSingleton", "AddTransient", "AddScoped", "service registration", "constructor injection", "IServiceProvider", "MauiProgram DI", "register services", "BindingContext injection".
davepoon/buildwithclaude
circleci-automation
Automate CircleCI tasks via Rube MCP (Composio): trigger pipelines, monitor workflows/jobs, retrieve artifacts and test metadata. Always search tools first for current schemas.