Find Duplicate Ownership logo

Find Duplicate Ownership

Organization
instructa
find-duplicate-ownership

Find duplicate ownership, hidden second sources of truth, and contract drift in layered codebases. Use when reviewing normalization, validation, defaulting, canonicalization, persistence mapping, runtime-vs-durable state, duplicated helpers, query or cache ownership, or any "who owns this rule?" architecture question. Especially useful for SSOT audits across frontend, backend, shared core, and adapter layers, and when the user explicitly asks for duplicate-ownership exploration with subagents.

Overview

Publisherinstructa
Repositoryagent-skills
Skill namefind-duplicate-ownership
Stars
141
Forks
16
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by instructa on GitHub. Read the source before you install it.

Installation

Install the Find Duplicate Ownership AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/instructa/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/engineering/find-duplicate-ownership .claude/skills/find-duplicate-ownership
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Find Duplicate Ownership in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Find Duplicate Ownership on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Find Duplicate Ownership is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Find Duplicate Ownership

Overview

Audit the codebase for multiply-owned rules instead of blindly grepping normalize. Classify each case as real SSOT drift, local dedupe cleanup, legitimate boundary work, or legitimate domain constraint.

Workflow

  1. Define the audit target before searching. Narrow by feature, contract, package, service, or file slice when possible. Good targets: session state, persistence contracts, runtime geometry, provider options, path helpers, JSON canonicalization.

  2. Build a taxonomy first. Use these buckets:

    • architecture / SSOT bug: same business rule owned in more than one layer
    • local dedupe cleanup: same helper semantics copied nearby
    • legitimate boundary adapter: wire, vendor, or untrusted input transformation with one clear owner
    • legitimate domain constraint: runtime clamp, math, security, or path logic that cannot be removed architecturally
  3. Search for ownership smells, not words. Look for:

    • validation, defaults, or clamps duplicated across frontend and backend
    • generated bindings or shared type aliases hiding the real contract owner
    • runtime mutators calling boundary repair or coercion
    • persisted shape differing from runtime shape and requiring glue
    • query, store, or cache logic re-owning domain policy
    • two helpers with the same semantics but different names
    • thin wrapper functions that hide a second path
    • copied deterministic serializers or hash inputs
    • local component, hook, or service helper clones instead of one domain owner
  4. Separate true duplicates from valid boundaries. Do not flag these by default:

    • pure UI formatting or presentation transforms
    • provider or protocol adapters with one clear boundary owner
    • security or path canonicalization with one clear security owner
    • runtime-only clamp or math logic with one clear runtime owner
  5. For each finding, name the winning owner. Always answer:

    • what exact rule is multiply owned
    • who owns it today
    • who should own it
    • what gets deleted in a hard cut
    • whether anything remains as real boundary adapter code

Heuristics

  • Be suspicious when frontend and backend both shape or repair the same contract.
  • Be suspicious when trusted runtime state is "normalized" after every mutation.
  • Be suspicious when query glue, cache glue, or store glue maps between two supposedly canonical state shapes.
  • Be suspicious when multiple languages or services define the same min, max, enum, or default constants independently.
  • Be suspicious when a helper exists in a domain library and again in a hook, component, controller, or service.

Subagent Use

Only use subagents when the user explicitly asks for them or asks for parallel exploration.

Reusable read-only agent definitions live in this skill's agents/ directory:

  • ownership-taxonomy-mapper.toml Use first for broad slice mapping and taxonomy.
  • duplicate-ownership-explorer.toml Use one per independent slice: persistence, runtime state, contracts, helpers, adapters.
  • ssot-judge.toml Use after explorers when you need one strict verdict on winning owner and hard-cut cleanup.

Recommended fan-out:

  • 1 taxonomy mapper
  • 2 to 5 explorers for disjoint slices
  • 1 SSOT judge to merge and challenge findings

Tell subagents:

  • stay read-only
  • cite files and symbols
  • do not propose compatibility shims
  • distinguish duplicate ownership from legitimate boundary work
  • return winner owner plus delete or keep plan

Output Contract

For each finding, return:

  1. severity
  2. rule or contract being multiply owned
  3. competing owners
  4. why it is a duplicate-owner bug or why it is legitimate boundary work
  5. exact files or symbols
  6. recommended single owner
  7. hard-cut cleanup:
    • delete
    • keep
    • rename
  8. classification:
    • architecture / SSOT bug
    • local dedupe cleanup
    • legitimate boundary adapter
    • legitimate domain constraint

Order findings by severity, then finish with a prioritized backlog by impact versus effort.

Prompting

Use prompt patterns from references/audit-prompts.md.

Guardrails

  • Do not reduce the audit to rg normalize.
  • Do not flag every adapter or clamp as bad architecture.
  • Do not recommend wrappers, fallbacks, shims, or dual paths.
  • Prefer deleting the losing owner, not introducing a mediator.
  • If ownership is ambiguous because the diff is mixed or the contract is unclear, say so explicitly.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Find Duplicate Ownership AI skill do?

Find duplicate ownership, hidden second sources of truth, and contract drift in layered codebases. Use when reviewing normalization, validation, defaulting, canonicalization, persistence mapping, runtime-vs-durable state, duplicated helpers, query or cache ownership, or any "who owns this rule?" architecture question. Especially useful for SSOT audits across frontend, backend, shared core, and adapter layers, and when the user explicitly asks for duplicate-ownership exploration with subagents.

Why use Find Duplicate Ownership on TypingMind?

Because you install it once and use it with any model. Find Duplicate Ownership is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Find Duplicate Ownership in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/instructa/agent-skills/tree/main/skills/engineering/find-duplicate-ownership. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Find Duplicate Ownership?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Find Duplicate Ownership?

As many as you like. As long as a model supports skills, you can use Find Duplicate Ownership with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Find Duplicate Ownership AI skill free?

It is published on GitHub by instructa. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇