Agent skill

Clone Patterns

by Houseofmvps in Houseofmvps/ultraship

Learn From the Best — analyze patterns from any codebase and apply them to yours.

MITAuto-check: notesDevelopment

Install Clone Patterns

skills CLI
$ npx skills add Houseofmvps/ultraship --skill clone-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Houseofmvps/ultraship clone-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Houseofmvps/ultraship.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/clone-patterns .claude/skills/clone-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clone-patterns
GitHub stars
123
Token cost
~682 tokens
SKILL.md length
305 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Learn From the Best — analyze patterns from any codebase and apply them to yours.

  • Works in 5 steps: Analyze Source → Pattern Report → Comparison → …
  • User wants to adopt best practices from another repo
  • SKILL.md covers Process and Key Principle
  • Calls node

What it does

Clone Patterns is an agent skill from Houseofmvps/ultraship. Learn From the Best — analyze patterns from any codebase and apply them to yours. Use when user wants to adopt best practices from another repo, compare code quality, or learn how top projects are structured.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code quality. It works with TypeScript. The repository describes itself as: "ULTRASHIP" Claude Code plugin — 39 skills, 33 tools, 11 agents for ship-ready workflows: planning, review, pentesting, safety guardrails, canary monitoring, SEO/AI-readiness… The licence is MIT.

When your agent uses it

  • User wants to adopt best practices from another repo
  • Compare code quality
  • Learn how top projects are structured

Example prompts

  • “/clone-patterns”

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Grep, Glob

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Analyze Source
  2. Pattern Report
  3. Comparison
  4. Adoption Plan
  5. Apply Patterns

What it can do on your machine

Read from SKILL.md and the folder at commit ed232cb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clone Patterns loads about 682 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 305 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~682

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Houseofmvps/ultraship at commit ed232cb, republished under its MIT licence (© Houseofmvps). 305 words, ~682 tokens.

Download SKILL.mdSave it as .claude/skills/clone-patterns/SKILL.md (or your agent's skills folder).
name
clone-patterns
description
Learn From the Best — analyze patterns from any codebase and apply them to yours. Use when user wants to adopt best practices from another repo, compare code quality, or learn how top projects are structured.
allowed-tools
Bash, Read, Grep, Glob
argument-hint
<repo-url-or-path>

Learn From the Best

Analyze any codebase's patterns and apply the best ones to your project.

Process

Phase 1: Analyze Source

Ask for the source project directory (must be cloned locally):

  • "Which repo do you want to learn from? Provide the local path."
bash
node ${CLAUDE_PLUGIN_ROOT}/tools/pattern-analyzer.mjs <source-directory> --compare=<your-project-directory>

Parse the JSON output.

Phase 2: Pattern Report

Present the source project's patterns:

Project Structure:

  • How they organize code (feature-based, layer-based, hybrid)
  • Naming conventions
  • Key directories

Testing Strategy:

  • Framework and location
  • Test-to-source ratio
  • Integration vs unit separation

Code Quality:

  • Average file length
  • Export patterns
  • Linting and formatting setup

TypeScript Practices:

  • Strict mode usage
  • Type vs interface preference
  • any count

Error Handling:

  • Custom error classes
  • Middleware patterns
  • Global handlers

CI/CD:

  • Pipeline setup
  • Automated steps
Phase 3: Comparison

Show side-by-side comparison between the source project and yours:

For each area, show:

  • What they do vs what you do
  • Whether the difference matters
  • Specific recommendation
Phase 4: Adoption Plan

Create a prioritized adoption plan:

Priority 1 (High Impact, Low Effort):

  • Enable TypeScript strict mode
  • Add linting/formatting config
  • Adopt naming conventions

Priority 2 (High Impact, Medium Effort):

  • Add test framework and initial tests
  • Create custom error classes
  • Add CI pipeline

Priority 3 (Medium Impact, Higher Effort):

  • Restructure project directories
  • Add integration tests
  • Improve documentation
Phase 5: Apply Patterns

For each pattern the user wants to adopt, implement it:

  1. TypeScript strict mode — update tsconfig.json, fix resulting errors
  2. Test framework — install vitest/jest, create first test, add test script
  3. Error handling — create base error class, add error middleware
  4. CI pipeline — create .github/workflows/ci.yml with lint, test, build
  5. Linting — add eslint config matching source project's style

Only apply patterns the user explicitly approves.

Key Principle

Steal like an artist. The best codebases didn't invent their patterns — they borrowed from others and refined them. Learn what works, adapt it to your context, and make it your own.

© Houseofmvps, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/clone-patterns of Houseofmvps/ultraship.

Open the folder on GitHubat commit ed232cb

Compare with similar skills

Clone Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clone Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clone Patterns this skillHouseofmvps/ultraship123—~682Automated safety check: NotesMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k1 repos~2.2kAutomated safety check: PassMIT
Code Reviewerjewbetcha/opentrace1162 repos~1.1kAutomated safety check: NotesMIT
Coding Standardskurealnum/dotfiles29017 repos~2.9kAutomated safety check: PassNone
Code Qualityredis/RedisInsight8.9k—~1.2kAutomated safety check: PassCustom licence
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • Code Reviewer

    jewbetcha/opentrace

    Comprehensive code review skill for TypeScript, JavaScript, Python, Swift, Kotlin, Go.

    116 GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check: notes
  • Coding Standards

    kurealnum/dotfiles

    Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

    290 GitHub starsUsed in 17 repos~2.9k tokens
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.

    6.4k GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check passed

More from Houseofmvps/ultraship

All 28 skills in this repo
  • Using Ultraship

    Houseofmvps/ultraship

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    123 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • A11y

    Houseofmvps/ultraship

    Accessibility audit + auto-fix (WCAG 2.2 A/AA). An agent skill from Houseofmvps/ultraship.

    123 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check: notes
  • Architecture

    Houseofmvps/ultraship

    Living Architecture Map — auto-generate Mermaid diagrams of your codebase.

    123 GitHub stars~708 tokensUpdated 3 mo ago
    Auto-check: notes
  • Code Review

    Houseofmvps/ultraship

    Code review with principal-engineer-level depth. An agent skill from Houseofmvps/ultraship.

    123 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Compete

    Houseofmvps/ultraship

    Competitive X-Ray — analyze any competitor URL vs your site.

    123 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes
  • Cost

    Houseofmvps/ultraship

    AI Build Cost Tracker — track how much AI is costing you per feature.

    123 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check: notes

Works with

Categories

Questions about Clone Patterns

What does Clone Patterns do?

Learn From the Best — analyze patterns from any codebase and apply them to yours. Clone Patterns is an agent skill from Houseofmvps/ultraship. Learn From the Best — analyze patterns from any codebase and apply them to yours.

When should I use Clone Patterns?

Clone Patterns fits situations like: user wants to adopt best practices from another repo; compare code quality; learn how top projects are structured.

How do I install Clone Patterns in Claude Code?

Run `npx skills add Houseofmvps/ultraship --skill clone-patterns -a claude-code`. Or copy the skill folder (skills/clone-patterns in Houseofmvps/ultraship) into .claude/skills/clone-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Clone Patterns in Codex?

Run `npx skills add Houseofmvps/ultraship --skill clone-patterns -a codex`. Or copy the skill folder (skills/clone-patterns in Houseofmvps/ultraship) into .agents/skills/clone-patterns in your project. Codex loads it when a task matches its description.

Can I use Clone Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Houseofmvps/ultraship --skill clone-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clone-patterns, .gemini/skills/clone-patterns, .github/skills/clone-patterns and .opencode/skills/clone-patterns in your project.

What does Clone Patterns need to run?

Going by SKILL.md and its folder, Clone Patterns needs the command-line tools its instructions call (node). Its frontmatter pre-approves these tools: Bash, Read, Grep, Glob.

Does Clone Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Clone Patterns safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Clone Patterns use?

Clone Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Clone Patterns use?

About 682 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Clone Patterns?

Skills that share tags, products or a category with Clone Patterns: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Code Reviewer (jewbetcha/opentrace, 116 stars), Coding Standards (kurealnum/dotfiles, 290 stars) and Code Quality (redis/RedisInsight, 8.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clone Patterns?

Houseofmvps (a GitHub user) maintains it in Houseofmvps/ultraship, which has 123 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on July 8, 2026.

Source: Houseofmvps/ultraship on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.