pattern-finder

Find recurring code patterns, architectural decisions, and shared conventions across projects in your organization's swarm. Use when you want to discover what patterns other teams use, find candidates for shared libraries, or standardize approaches across the org. Also use when the user asks to "find patterns across projects", "what conventions do other teams follow", "shared code opportunities", or anything about org-wide code reuse. Requires an active swarm connection.

8 stars

Best use case

pattern-finder is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Find recurring code patterns, architectural decisions, and shared conventions across projects in your organization's swarm. Use when you want to discover what patterns other teams use, find candidates for shared libraries, or standardize approaches across the org. Also use when the user asks to "find patterns across projects", "what conventions do other teams follow", "shared code opportunities", or anything about org-wide code reuse. Requires an active swarm connection.

Teams using pattern-finder should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/pattern-finder/SKILL.md --create-dirs "https://raw.githubusercontent.com/goondocks-co/open-agent-kit/main/.agents/skills/pattern-finder/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/pattern-finder/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How pattern-finder Compares

Feature / Agentpattern-finderStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Find recurring code patterns, architectural decisions, and shared conventions across projects in your organization's swarm. Use when you want to discover what patterns other teams use, find candidates for shared libraries, or standardize approaches across the org. Also use when the user asks to "find patterns across projects", "what conventions do other teams follow", "shared code opportunities", or anything about org-wide code reuse. Requires an active swarm connection.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Pattern Finder

Search across swarm nodes for recurring code patterns, architectural decisions,
and shared conventions that could be standardized or extracted into shared
libraries.

## Workflow

### 1. Verify Connectivity

```
swarm_status()
swarm_nodes()
```

Note the connected projects — each represents a search target.

### 2. Search for Patterns

Run searches across several dimensions:

```
# Shared utility patterns
swarm_search(query="utility functions helpers common patterns", search_type="all", limit=20)

# Architectural patterns
swarm_search(query="service layer architecture middleware patterns", search_type="memory", limit=20)

# Error handling and resilience
swarm_search(query="error handling retry logic resilience patterns", search_type="memory", limit=15)

# Testing approaches
swarm_search(query="testing conventions test patterns integration tests", search_type="memory", limit=15)

# Configuration and deployment
swarm_search(query="configuration management deployment patterns CI/CD", search_type="memory", limit=15)
```

Adjust queries based on the user's focus area. If they asked about a specific
domain (e.g., "how do other teams handle auth?"), prioritize targeted searches.

### 3. Drill into Interesting Findings

```
swarm_fetch(ids=["<chunk-id>"], project_slug="<project>")
```

Fetch details for patterns that appear across multiple projects or that
represent particularly clean solutions worth adopting.

### 4. Compare with Local Patterns

Search the current project to see how local patterns relate:

```
# Use grep/glob to find local implementations of discovered patterns
Grep(pattern="relevant pattern", path="src/")
```

This comparison makes recommendations concrete — "Team B does X, we do Y,
here's why aligning makes sense."

### 5. Write the Report

Write to `oak/insights/pattern-finder-report.md`:

```markdown
# Pattern Finder Report

> Generated: YYYY-MM-DD | Projects analyzed: N

## Executive Summary

Overview of key findings — what patterns are widely shared, where approaches
diverge, and the top extraction/standardization opportunities.

## Shared Patterns

Patterns that appear across multiple projects:

### [Pattern Name]
- **Where:** Projects A, B, C
- **What:** Brief description of the pattern
- **Variation:** How implementations differ across projects
- **Assessment:** Is convergence desirable? Which version is best?

(Repeat for each significant pattern found)

## Divergences Worth Examining

Areas where projects take notably different approaches to the same problem:

| Problem Domain | Project A Approach | Project B Approach | Notes |
|---------------|-------------------|-------------------|-------|
| ...           | ...               | ...               | ...   |

## Extraction Candidates

Code that could be extracted into shared packages:

| Candidate | Found In | Description | Effort |
|-----------|----------|-------------|--------|
| Retry utility | A, B, C | Exponential backoff with jitter | Low |
| ...       | ...      | ...         | ...    |

Include:
- Utility functions duplicated across projects
- Common middleware or service patterns
- Shared type definitions or schemas

## Convention Alignment

| Convention | Projects Aligned | Projects Diverging | Recommendation |
|-----------|-----------------|-------------------|----------------|
| Naming style | A, C (snake_case) | B (camelCase) | Align to snake_case |
| ...       | ...             | ...               | ...            |

## Recommendations

Prioritized list of actions:
1. Quick wins — patterns already nearly aligned, just need coordination
2. High-value extractions — widely duplicated code worth packaging
3. Convention decisions — divergences that need a team decision
```

### CLI Fallback

```bash
oak-dev swarm status
oak-dev swarm nodes
oak-dev swarm search "utility functions common patterns" --type all -n 20
oak-dev swarm search "architectural patterns" --type memory -n 20
oak-dev swarm search "error handling patterns" --type memory -n 15
```

## Tips

- **Adapt searches to user intent.** If the user wants patterns in a specific
  area (auth, testing, deployment), focus your queries there instead of
  searching broadly.
- **Patterns need at least 2 projects.** A pattern in a single project is just
  an implementation. Look for things that recur across teams.
- **Compare don't just catalog.** The value is in the comparison — noting where
  projects converge and diverge, not just listing what each project does.
- **Extraction candidates should be concrete.** "They all have retry logic" is
  an observation. "These three implementations of exponential backoff could
  merge into a shared `@org/retry` package" is actionable.

## Deep Dives

Consult these reference documents for deeper guidance:

- **`references/pattern-examples.md`** — Good and bad pattern reports with criteria for what makes a pattern worth reporting. Read this before writing the report.
- **`references/search-strategies.md`** — How to write effective swarm queries, when to use each search type, and how to correlate results across projects.

Related Skills

playwright-cli

8
from goondocks-co/open-agent-kit

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

swarm

8
from goondocks-co/open-agent-kit

Search across multiple projects in your organization's swarm. Use when you need cross-project patterns, org-level conventions, shared decisions, or want to know how other projects solved a problem. Complements the oak (team) skill which covers single-project knowledge. Also use when the user mentions swarm_search, swarm_fetch, swarm_nodes, swarm_status, or asks about what other teams/projects have done, cross-project dependencies, org-wide patterns, or collective knowledge across the organization.

swarm-report

8
from goondocks-co/open-agent-kit

Generate a cross-project comparative report from your organization's swarm. Use when you need an overview of all connected projects, want to compare activity levels, find shared patterns, or identify collaboration opportunities across teams. Also use when the user asks for a "swarm report", "cross-project analysis", "org overview", or wants to understand how projects relate to each other. Requires an active swarm connection.

project-governance

8
from goondocks-co/open-agent-kit

Create and maintain project constitutions and agent instruction files. Use when establishing coding standards, adding project rules, creating agent guidance files, syncing rules across agents, or improving AI agent consistency. Also supports RFC/ADR documents for formalizing technical decisions that feed into the constitution.

oak

8
from goondocks-co/open-agent-kit

Find out what happened, what was decided, and what depends on what in your codebase. Use this skill whenever you need to: recall past decisions or discussions ("what did we decide about X?"), check what might break before refactoring ("what depends on this module?"), find conceptually similar code that grep would miss ("all the retry/backoff logic"), look up past bugs, gotchas, or learnings, query session history or agent run costs, store observations about the codebase, or understand how components connect end-to-end. Powered by semantic search, memory lookup, and direct SQL against the Oak CI database (.oak/ci/activities.db). Also use when the user mentions oak_search, oak_context, oak_remember, oak_resolve_memory, or asks to run queries against activities.db or oak.

dependency-audit

8
from goondocks-co/open-agent-kit

Audit dependencies across projects in your organization's swarm. Use when you need to find version conflicts, outdated packages, or security risks across teams. Also use when the user asks for a "dependency audit", "version check across projects", "package alignment", or wants to standardize dependencies org-wide. Requires an active swarm connection.

context-engineering

8
from goondocks-co/open-agent-kit

Design effective prompts and optimize context for AI models and agents. Covers prompt engineering foundations (clarity, examples, chain of thought, XML structure), the four context engineering strategies (Write, Select, Compress, Isolate), agent memory and session patterns, and before/after examples showing measurable improvement. Use when writing system prompts, designing agent workflows, optimizing context windows, building prompt templates, structuring few-shot examples, reducing context rot, or improving AI output quality.

performing-subdomain-enumeration-with-subfinder

16
from plurigrid/asi

Enumerate subdomains of target domains using ProjectDiscovery's Subfinder passive reconnaissance tool to map the attack surface during security assessments.

finder-color-walk

16
from plurigrid/asi

Finder Color Walk Skill

detecting-mimikatz-execution-patterns

16
from plurigrid/asi

Detect Mimikatz execution through command-line patterns, LSASS access signatures, binary indicators, and in-memory detection of known modules.

detecting-beaconing-patterns-with-zeek

16
from plurigrid/asi

Performs statistical analysis of Zeek conn.log connection intervals to detect C2 beaconing patterns. Uses the ZAT library to load Zeek logs into Pandas DataFrames, calculates inter-arrival time standard deviation, and flags periodic connections with low jitter. Use when hunting for command-and-control callbacks in network data.

detecting-anomalous-authentication-patterns

16
from plurigrid/asi

Detects anomalous authentication patterns using UEBA analytics, statistical baselines, and machine learning models to identify impossible travel, credential stuffing, brute force, password spraying, and compromised account behaviors across authentication logs. Activates for requests involving authentication anomaly detection, login behavior analysis, UEBA implementation, or suspicious sign-in investigation.