external-pattern-integrator
Skill67 starsChanged 50 days agoMITView on GitHub
Integrates patterns from external sources (URLs or local files) into local skills, agents, and plugins. Use when comparing external agent definitions against local equivalents, extracting best practices from frameworks like GSD or BMAD-METHOD, enhancing local skills with external workflow patterns, or adding interoperability with external tool ecosystems. Runs a 3-phase workflow — parallel candidate mapping, contextual enhancement, and validation — with source attribution and backlog tracking for deferred enhancements.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- research/CLAUDE.mdCLAUDE.md
- .cursor/rules/backlog-before-work.mdcCursor rule
- agent-browserSkill
- beadsSkill
- cccSkill
- copy-editingSkill
- daily-releasesSkill
- graph-engineeringSkill
- rebaseSkill
- receiving-pr-reviewsSkill
- topic-specialistSkill
- workshop-question-framingSkill
- agent-browserSkill
- boilSkill
- commit-stagedSkill
- complete-milestoneSkill
- cove-prompt-designSkill
- create-merge-request-changelogSkill
- create-milestoneSkill
- design-anti-patternsSkill
- evaluate-sdlc-layersSkill
- example-argument-substitutionSkill
- fact-checkSkill
- ghSkill
- git-history-reconSkill
- group-items-to-milestoneSkill
- knowledge-explorerSkill
- linear-walkthroughSkill
- modern-gitSkill
- prepare-walkthrough-presentationSkill
- readme-badgerSkill
- refresh-researchSkill
- research-curatorSkill
- session-historianSkill
- seven-prompt-content-engineSkill
- skill-research-processSkill
- start-milestoneSkill
- universe-of-thoughtsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Create a tracking file at .claude/external-pattern-integration-{date}.md:
- Very specific: line 74
If URL: Use WebFetch or curl to download to /tmp/external-pattern-{slug}.md
- Distinctive: line 75
If local file: Read directly
- Distinctive: line 111
If a local file appears as candidate for multiple external sources:
- Distinctive: line 118
Run concurrently for each external source.
- Distinctive: line 126
Check for references to other skills/agents in the file
- Distinctive: line 127
Check if other files reference this one
- Distinctive: line 128
Look for phase indicators (discovery → planning → implementation → verification)
- Distinctive: line 144
Read the full external source and full local file.
- Distinctive: line 153
Critical Rule: Only recommend enhancements that fit the file's workflow stage.
- Distinctive: line 185
If enhancements affect multiple files in a workflow:
- Distinctive: line 189
Ensure consistency (same terminology, compatible artifacts)
- Distinctive: line 212
Update the tracking file with:
- Very specific: line 232
If there are deferred enhancements, create per-item files in .claude/backlog/ via the backlog script:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
<source_refs>$ARGUMENTS</source_refs>
External Pattern Integrator
Systematically analyze external agent/skill definitions and integrate their strengths into local skills while maintaining workflow coherence.
Arguments
<source_refs/>
Workflow Overview
Phase 1: Parallel Candidate Mapping
├── For each external source (concurrent):
│ ├── Fetch/read the external file
│ ├── Analyze its purpose and patterns
│ └── Scan local files for candidates (frontmatter only)
└── Output: Tracking document with source → candidates mapping
Phase 2: Contextual Enhancement (concurrent per source)
├── Understand local file's workflow context FIRST
├── Compare against external patterns
├── Identify enhancements that fit the workflow stage
├── Add external artifact recognition for interoperability
└── Edit files with coordinated changes
Phase 3: Validation
└── Run linting on all modified filesPhase 1: Parallel Candidate Mapping
Step 1.1: Create Tracking Document
Create a tracking file at .claude/external-pattern-integration-{date}.md:
# External Pattern Integration
**Date**: {YYYY-MM-DD}
**Sources**: {list of URLs/files from arguments}
**Status**: IN_PROGRESS
## Source Analysis
### Source 1: {URL or path}
**Purpose**: {What this external agent/skill does}
**Key Patterns**:
- {Pattern 1}
- {Pattern 2}
**Local Candidates** (by frontmatter similarity):
| Local File | Similarity Reason | Priority |
|------------|-------------------|----------|
| {path} | {why it matches} | {High/Medium/Low} |
### Source 2: {URL or path}
...Step 1.2: Fetch External Sources
For each URL/file in <source_refs/>:
If URL: Use WebFetch or curl to download to /tmp/external-pattern-{slug}.md
If local file: Read directly
Step 1.3: Analyze External Source
For each external source, extract:
- Purpose: What problem does it solve?
- Key Patterns: What techniques does it use?
- Artifact Files: What files does it create/read? (for interoperability)
- Workflow Stage: Where in a development workflow does it fit?
Step 1.4: Scan Local Candidates
Scan these locations for candidates (frontmatter only, not full files):
plugins/*/skills/*/SKILL.md
plugins/*/agents/*.md
.claude/skills/*/SKILL.md
.claude/agents/*.mdMatch by:
- Similar purpose (from description field)
- Similar workflow stage
- Overlapping functionality
Priority Assignment:
- High: Direct functional overlap (same workflow stage, similar purpose)
- Medium: Adjacent functionality (related workflow stage)
- Low: Tangential (shared patterns but different purpose)
Step 1.5: Deduplicate Candidates
If a local file appears as candidate for multiple external sources:
- Assign to the BEST match (highest similarity)
- Note secondary matches for cross-reference during enhancement
Phase 2: Contextual Enhancement
Run concurrently for each external source. For each candidate local file:
Step 2.1: Understand Workflow Context
BEFORE comparing, determine:
Is this file part of a multi-file workflow?
- Check for references to other skills/agents in the file
- Check if other files reference this one
- Look for phase indicators (discovery → planning → implementation → verification)
What stage of the workflow is this file for?
- Discovery/Research (gathering context)
- Planning (creating specs, acceptance criteria)
- Implementation (writing code)
- Verification (testing, validation)
- Orchestration (coordinating other agents)
- What are the upstream/downstream dependencies?
- What artifacts does this file expect as input?
- What artifacts does this file produce?
Step 2.2: Compare and Identify Enhancements
Read the full external source and full local file. Identify:
| Enhancement Type | Description | Fits Current Stage? |
| Missing pattern | External has X, local lacks it | Yes/No |
| Stronger guidance | External has better instructions for Y | Yes/No |
| Better structure | External organizes Z more clearly | Yes/No |
| Artifact recognition | External creates files local should recognize | Yes/No |
Critical Rule: Only recommend enhancements that fit the file's workflow stage. If an enhancement belongs in a different stage, note which file should receive it instead.
Step 2.3: Add External Artifact Recognition
For interoperability, add a section to context-gathering skills:
## External Framework Artifacts
<external_artifacts>
When gathering context, also check for these artifacts from external frameworks:
**Get Shit Done (GSD)**:
- `STATE.md` - Current project state and progress
- `ROADMAP.md` - Feature roadmap and planning
- `codebase-map.md` - Generated codebase structure
- `research-*.md` - Research documents
- `plan-*.md` - Execution plans
**BMAD-METHOD**:
- `*.agent.yaml` - Agent definitions
- `workflows/*.md` - Workflow definitions
- `party-mode-session.md` - Multi-agent collaboration notes
If found, incorporate their context into discovery.
</external_artifacts>Step 2.4: Coordinate Cross-File Changes
If enhancements affect multiple files in a workflow:
- List all affected files
- Determine the order of changes (upstream before downstream)
- Ensure consistency (same terminology, compatible artifacts)
- Make changes atomically (all or none)
Step 2.5: Apply Enhancements
Edit local files with:
- Clear section markers for new content
- Source attribution:
SOURCE: Adapted from {external source URL/path} - Preserved existing functionality (additive changes preferred)
Phase 3: Validation
Step 3.1: Run Linting
uv run prek run --files {all modified files}Fix any issues before proceeding.
Step 3.2: Update Tracking Document
Update the tracking file with:
## Results
**Files Modified**:
| File | Enhancements Applied | Source |
|------|---------------------|--------|
| {path} | {what was added} | {external source} |
**Deferred Enhancements** (didn't fit current files):
| Enhancement | Reason Deferred | Suggested Location |
|-------------|-----------------|-------------------|
| {pattern} | {why} | {where it should go} |
**Status**: COMPLETEStep 3.3: Add Deferred Items to Backlog
If there are deferred enhancements, create per-item files in .claude/backlog/ via the backlog script:
- For each deferred enhancement, invoke the backlog script with appropriate priority:
- P1 (Should Have): Patterns that would significantly improve workflows
- P2 (Could Have): Nice-to-have patterns or minor improvements
- Ideas: Patterns worth exploring but unclear fit
Entry format:
### {Enhancement title}
**Source**: [{tracking-document}]({path-to-tracking-document})
**Added**: {YYYY-MM-DD}
**Description**: {What needs to be done}
**Patterns from**: {external-source-name}
**Suggested location**: {path/to/file.md}- Note in tracking document: "Deferred items added to
.claude/backlog/as per-item files"
Step 3.4: Commit Changes
Stage and commit with message:
feat(skills): integrate patterns from {source names}
Enhancements:
- {file1}: {what was added}
- {file2}: {what was added}
Sources:
- {URL1}
- {URL2}Success Criteria
- All external sources fetched and analyzed
- Tracking document created with candidate mapping
- Workflow context understood before making changes
- Enhancements fit the file's workflow stage
- Cross-file changes coordinated
- External artifact recognition added for interoperability
- All modified files pass linting
- Deferred enhancements added as per-item files in
.claude/backlog/with priority - Changes committed with source attribution
Example Usage
User: /external-pattern-integrator https://github.com/glittercowboy/get-shit-done/blob/main/agents/gsd-codebase-mapper.mdDoes 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.

