agentsclimarketplace

Unicorn pattern transfer

Skill andrey-learning-machines/swe-harness/plugins/swe-harness/skills/unicorn-pattern-transfer

Portable SWE harness plugin for Codex and Claude Code

Install
npx -y skills add andrey-learning-machines/swe-harness --skill unicorn-pattern-transfer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Recognizes problem classes and transfers proven solutions across domains. ALWAYS trigger on "I've seen this before", "this is like X but in Y", "there must be a pattern", "how do I do X in Y", "equivalent of", "similar to", "same concept", "translate this approach", "port this to", "cross-language", "idiomatic way". Use when encountering familiar problems in unfamiliar contexts or applying concepts across languages/frameworks. Different from code-reading which builds mental models of existing code -- this skill maps known solutions to new domains.

SKILL.md

5.1 KB, as published. Nobody here has run it

<!-- Last reviewed: 2026-03 -->

Pattern Transfer

Pattern Recognition Process

1. Identify the Problem Class

Ask: "What CATEGORY of problem is this?"

Surface SymptomCore Problem Class
Notify components when data changesState observation
Multiple async operations need coordinationAsync orchestration
Expensive computation called repeatedlyCaching
Too many requests overload systemRate limiting
Operation fails sometimesRetry/resilience
Transform collection of dataData transformation

2. Recall Prior Implementations

Ask: "Where have I encountered this problem class before?"

Map all known manifestations across languages, frameworks, and infrastructure layers.

3. Extract Canonical Solution

Ask: "What's the ESSENCE?" Strip language-specific syntax down to core steps.

Example -- State Management ESSENCE:
1. Central state container
2. Controlled mutation mechanism
3. Change notification system
4. Subscriber registration/unregistration

4. Map to Local Idioms

Ask: "How is this done HERE?" Translate essence into target domain's conventions, best practices, libraries, and naming.

Common Pattern Classes

Pattern ClassProblemKey Implementations
State ManagementShared changing dataRedux, databases, event sourcing
Async CoordinationMultiple async operationsPromises, asyncio, goroutines
CachingExpensive repeated operationsMemoization, Redis, HTTP cache
Rate LimitingPrevent resource exhaustionToken bucket, sliding window
Retry/ResilienceHandle transient failuresBackoff, circuit breaker
Data TransformationReshape dataMap/filter/reduce, pipes, LINQ

See references/pattern-catalog.md for detailed essence, manifestations, and transfer examples.

Transfer Protocol

Step 1: Extract ESSENCE

Remove language-specific details. Find core idea as numbered steps.

Step 2: Find IDIOMS

How does target language/framework express this? What libraries exist? What conventions apply?

Step 3: REIFY

Implement using local conventions. Verify it solves the original problem, not a distorted version.

Pattern Recognition Checklist

Classification:

  • What CATEGORY is this problem?
  • Have I seen this before?
  • What's it called in different contexts?

Recall:

  • Where have I solved this?
  • What solutions exist elsewhere?
  • What's the canonical implementation?

Extraction:

  • What's the CORE idea?
  • What's language-specific syntax vs essence?
  • What constraints shaped the original?

Adaptation:

  • What are idioms HERE?
  • What conventions should I follow?
  • What libraries/tools exist?

Verification:

  • Does this solve the RIGHT problem?
  • Is this the SIMPLEST solution?
  • Have I introduced new problems?

Anti-Patterns

Anti-PatternSymptomInstead
Pattern obsessionSingletonFactoryStrategyAdapterSolve the actual problem simply
Inappropriate transferOOP patterns in functional languagesUse target paradigm's strengths
Cargo cult"Saw Redux in tutorial, using everywhere"Match tool to actual complexity
Premature abstractionExtracting pattern from 1 use caseWait for 2+ use cases

Quick Reference: Pattern Mapping

When You SeePatternImplementations
Notify on changeObserverEvents, hooks, pub/sub, triggers
Swap behaviorStrategyPolymorphism, functions, DI
Add featuresDecorator@decorator, HOC, annotations
Expensive operationMemoizationCache, React.memo, materialized views
Too many requestsRate LimitToken bucket, throttle, semaphore
Transient failuresRetryBackoff, circuit breaker, timeout
Object creationBuilderFluent API, config object
Single accessSingletonModule pattern, DI, constants
Undo/redoCommandEvent sourcing, action history
Transform pipelineChainStreams, LINQ, pipes, map/reduce

Integration with Other Skills

SkillIntegration
Code ReadingRecognize patterns in unfamiliar codebases faster
EstimationKnown patterns have known complexity
Language LearningMap known patterns to new language idioms
DebuggingPattern violations often indicate bugs

See references/transfer-examples.md for multi-scale examples and practice exercises.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.