agentleFS
Arnie016Arnie016/codex-prompt-templates/skills/auto-skill-build-source-pattern-synthesis/SKILL.md

auto-skill-build-source-pattern-synthesis

Skill3 starsChanged 6 months agoMITView on GitHub

Synthesize multiple local `sources/` clones into workflow families before creating skills, references, or scripts. Use when doing source-pattern synthesis, comparing several GitHub-derived repos, deciding which cloned patterns deserve durable Codex artifacts, or avoiding duplicate generated skills. Requires local source clones plus `source_pattern_matrix.py`. Skip when you only need a one-repo brief or a metadata-only source inventory.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    update an existing owner skill

    line 36
  2. Distinctive:

    create one narrow generated skill

    line 37
  3. Distinctive:

    add a reference page

    line 38
  4. Distinctive:

    write memory only when the evidence is weak or duplicated

    line 39
  5. Distinctive:

    Run safety gates before executing any repo code, install path, MCP server, hook, binary, or account-control tool.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

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

Source Pattern Synthesis

Generated by: Codex Supercharge maintenance automation.

Goal: turn many local source clones into a small pattern matrix and a build decision without rereading every README or creating overlapping skills.

Workflow

  1. Refresh metadata first when clone state may have changed:

    python3 plugins/codex-supercharge/scripts/sources_inventory.py --write
  2. Generate the cross-repo pattern matrix:

    python3 plugins/codex-supercharge/scripts/source_pattern_matrix.py --write
  3. Read plugins/codex-supercharge/references/source-pattern-synthesis.md.
  4. Cluster repos by repeated behavior, not by hype or star counts.
  5. For each cluster, choose one output:
    • update an existing owner skill
    • create one narrow generated skill
    • add a reference page
    • write memory only when the evidence is weak or duplicated
  6. Run safety gates before executing any repo code, install path, MCP server, hook, binary, or account-control tool.

Skip When

  • The task is about one repo only; use $repo-intelligence-brief.
  • The user only needs source metadata; use $auto-skill-build-sources-inventory.
  • The source is an external skill/prompt pack; run $auto-skill-safety-external-skill-intake first.
  • The request is a current popularity or trend claim; verify fresh evidence before writing conclusions.

References

  • plugins/codex-supercharge/references/source-pattern-synthesis.md
  • plugins/codex-supercharge/references/source-repos.md
  • Safety gates: $sandbox-source-intake, $mcp-safety-review
  • Build gates: $automation-skill-forge, $skill-pack-factory, $skill-quality-gate

Validation

python3 plugins/codex-supercharge/scripts/source_pattern_matrix.py | head
python3 plugins/codex-supercharge/scripts/source_pattern_matrix.py --write
python3 "$HOME/.codex/skills/.system/skill-creator/scripts/quick_validate.py" plugins/codex-supercharge/skills/auto-skill-build-source-pattern-synthesis

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.