moat-builder

moat-builder is a skill for Claude Code, Codex from hamza-ali-shahjahan/hamzaish. It costs 32 tokens per session (819 once invoked), scanned A, original, MIT.

A framework for finding and strengthening a product’s moats, meaning advantages that make it harder for competitors to copy or replace it. It examines workflow lock-in, data network effects, domain knowledge, and integrations.

In plain words
What is it for?
Use it to audit existing competitive advantages and plan improvements to workflows, data, specialist knowledge, and integrations.
Why use it?
It helps reveal whether your product has lasting advantages and where those advantages are weak. It then suggests investments to deepen them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit existing competitive advantages and plan improvements to workflows, data, specialist knowledge, and integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamza-ali-shahjahan/hamzaish/moat-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamza-ali-shahjahan/hamzaish --skill moat-builder
Clone the repo
git clone --depth 1 https://github.com/hamza-ali-shahjahan/hamzaish

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for moat-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/moat-builder/github.svg)](https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/moat-builder)
Your own site
<a href="https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/moat-builder"><img src="https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/moat-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for moat-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/moat-builder"><img src="https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/moat-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00819
Opus 5.5 $0.00013 $0.00328
Sonnet 5.5 $0.00006 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 3mo ago against content hash fb5a15c2a20b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

moat-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

_archive/v0/agents/scale/moat-builder/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Moat Builder

When you activate

  • Quarterly strategic review
  • When user asks: "what's our moat?", "how do we defend X?", "what makes us hard to replicate?"
  • After a competitor releases something similar

What you produce

Saved to products/<name>/scale/moat-YYYY-QN.md:

## Moat Assessment — <product> — <quarter>

### Moat inventory (current state)
| Moat type | Strength (1-5) | Evidence | Threat |
|---|---|---|---|
| Workflow lock-in | <n> | <e.g. avg user has 7 integrations> | <e.g. competitor offers easy import> |
| Data network effects | <n> | <e.g. 18 months of behavioral data> | <e.g. competitor has 10x our users> |
| Domain depth | <n> | <e.g. handle 340B drug program correctly> | <e.g. competitor hires our former PM> |
| Integration depth | <n> | <e.g. native to 12 tools> | <e.g. competitor is acquired by a tool we're not native to> |
| Brand / community | <n> | <e.g. 8K active forum, 100 user-generated tutorials> | <e.g. competitor sponsors our biggest YouTube channel> |
| Switching cost | <n> | <e.g. retraining takes 4 weeks> | <e.g. competitor pays for migration> |

### The 30-day-copy test
If a well-funded competitor copied our product 1:1 today, in 30 days they would have:
- Feature parity: yes/no
- Performance parity: yes/no
- Distribution parity: yes/no
- What we still have: <list — this IS our moat>
- What we don't have: <list — this is where we're exposed>

### Top 3 moat investments for next quarter
1. <investment> — moat type — expected impact — cost
2. ...
3. ...

### Workflow lock-in audit (per-customer)
For top 10 customers, document:
- Integrations they use (count)
- Workflows built on top (count + estimated switching cost)
- Custom data they've created in the product (volume)
- Score: deep / medium / surface

Most customers should be migrating from "surface" → "deep" over their lifetime. If 6+ months in and still surface = activation/onboarding problem.

### Data flywheel narrative
The story for product marketing:
> "<one-paragraph: how data → improvement → more users → more data, with a specific time horizon a competitor can't shortcut>"

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 72 lines · 32 tokens per session scan A fb5a15c2a20b

Subscribe to this mod's changes

moat-builder is a skill published in the GitHub repository hamza-ali-shahjahan/hamzaish (11 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 819 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

moat-builder compared with skills from other repositories

moat-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
moat-builderhamza-ali-shahjahan/hamzaishSkill111mo agoMITA32Claude Code, Codex
gingiris-launchGingiris/gingiris-launchSkill2157mo agoMITA326Claude Code, Codex
payments-polaralifanov/ai-garage-launchSkill23mo agoMITA53Claude Code
stack-referencealifanov/ai-garage-launchSkill23mo agoMITA67Claude Code
unit-economicsalifanov/ai-garage-launchSkill23mo agoMITA73Claude Code
make-playbooktamdogood/make-playbookSkill55mo agoMITA97Claude Code
traffic-channelsalifanov/ai-garage-launchSkill23mo agoMITA59Claude Code