agentleFS
daymadedaymade/claude-code-skills/competitors-analysis/SKILL.md

competitors-analysis

Skill1.4k starsChanged 8 months agoMITView on GitHub

Clones and audits competitor repositories into evidence-based intelligence with file:line citations. Use to track competitors, add a competitor repo, review competitor code, compare capabilities, build a competitor landscape, or check for code updates: 竞品分析 / 竞品 / competitor scan / analyze competitor / compare with X / latest competitor code. Not for market research without code (use deep-research).

1 other project uses a version of this.

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 3 mentionsSep 2026: 1 mentionOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the daymade/claude-code-skills repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about daymade/claude-code-skills

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on GitHub (14 times).

On GitHub · 14

9 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    STOP immediately. Report back: "competitors-analysis needs an explicit product-name or market.

    line 34
  2. Very specific:

    run ls on $COMPETITORS_BASE to pick an existing product directory as your target.

    line 41
  3. Very specific:

    If the user's request is missing the product/market or target customer segment, ask for that context before synthesizing positioning or …

    line 50
  4. Distinctive:

    Use the user's wording to choose the path:

    line 56
  5. Very specific:

    Use a durable workspace, not /tmp.

    line 68
  6. Very specific:

    Use owner-repo for GitHub repositories so forks and similarly named projects do not collide.

    line 83
  7. Distinctive:

    Before analysis, establish these facts from commands, not memory:

    line 93
  8. Distinctive:

    If the repository is missing, clone it first.

    line 103
  9. Distinctive:

    If SSH fails for a public repository, report the failure and retry with the repository's HTTPS URL only when that keeps the work moving.

    line 110
  10. Very specific:

    Use gh search repos for GitHub repository discovery.

    line 115
  11. Distinctive:

    Read files in this order and capture exact sources:

    line 141
  12. Very specific:

    Use nl -ba <file> or an editor with line numbers before citing.

    line 152
  13. Distinctive:

    Do not write unsupported technical claims.

    line 208
  14. Very specific:

    When evidence is unavailable, write 待验证 and state the exact next check that would verify it.

    line 218
  15. Very specific:

    Before finishing, run the checks in references/analysis_checklist.md:

    line 223
  16. Very specific:

    Use scripts/update-competitors.sh as the starting point for durable competitor repository management:

    line 235

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Competitors Analysis

Build competitor intelligence that can be shared, re-run, and audited later. This skill has two layers:

  1. Repository evidence: clone or update the competitor code under the durable competitors workspace, then cite facts from actual files and commits.
  2. Landscape synthesis: summarize positioning, pricing, strengths, weaknesses, gaps, and opportunities, but only after separating sourced facts from judgment.

This skill intentionally subsumes lightweight "competitor scan" workflows. A scan is useful for the landscape table, but it is not enough for technical conclusions.

Stop Gate — required input (read this first)

This skill runs as context: fork and cannot ask the user anything. The "ask if missing" pattern below therefore does not apply to you. Enforce this hard gate as your very first action:

If the caller did not pass an explicit product/market target for THIS invocation, STOP immediately. Report back: "competitors-analysis needs an explicit product-name or market; none was provided, and as a background fork I cannot ask — aborting rather than inventing a target." Then exit.

Do not:

  • invent or infer a target — a plausible task you generated yourself is still fabricated, not the user's;
  • run ls on $COMPETITORS_BASE to pick an existing product directory as your target;
  • fall through to Discover mode to fill the gap.

A target counts as "provided" only if it came from the caller's request/arguments this invocation — not from a directory name on disk, not from your own reasoning.

Entry Router

If the user's request is missing the product/market or target customer segment, ask for that context before synthesizing positioning or opportunity claims (in context: fork you cannot ask — the Stop Gate above already handled the missing-target case; if you reached here, a target was provided). Known competitors are optional; if absent, use Discover mode.

Use the user's wording to choose the path:

User intentModeWhat to do
"find competitors", "竞品有哪些", broad market queryDiscoverSearch GitHub and web sources, shortlist candidates, clone only relevant repositories
"add competitor <url>"IngestClone the repository, record remote + commit, then produce a first profile
"analyze competitor", "review this repo"ProfileUpdate or clone locally, read code, write a cited technical profile
"compare", "landscape", "opportunities"LandscapeEnsure each competitor has a profile, then synthesize gaps and opportunities
"latest code", "有没有更新"UpdatePull/fetch existing competitors and report changed commits before analysis

Durable Source Layout

Use a durable workspace, not /tmp. The default base is:

COMPETITORS_BASE="${COMPETITORS_BASE:-$HOME/workspace/competitors}"

Directory convention:

$COMPETITORS_BASE/
└── {product-slug}/
    ├── {owner-repo}/
    └── ...

Use owner-repo for GitHub repositories so forks and similarly named projects do not collide. If the caller named a product directory this invocation and it already exists on disk, use it as the source of truth and do not re-clone elsewhere. Never adopt an existing product directory the caller did not name this invocation — that is exactly how a target-less fork silently picks up an unrelated project (2026-09-20 incident: a no-arg fork fabricated an "A2A market" task and ratified it by reusing the on-disk agent-communication dir for 1h23m).

Preflight

Before analysis, establish these facts from commands, not memory:

repo="$COMPETITORS_BASE/{product-slug}/{owner-repo}"
test -d "$repo/.git"
git -C "$repo" remote -v
git -C "$repo" fetch --all --prune
git -C "$repo" log -1 --format='%H%x09%cI%x09%s'

If the repository is missing, clone it first. Prefer SSH for GitHub when possible:

mkdir -p "$COMPETITORS_BASE/{product-slug}"
git clone --depth 1 <git-ssh-url> "$COMPETITORS_BASE/{product-slug}/{owner-repo}"

If SSH fails for a public repository, report the failure and retry with the repository's HTTPS URL only when that keeps the work moving.

Discovery Workflow

Use gh search repos for GitHub repository discovery. Search multiple query phrases; do not trust one keyword.

gh search repos "product keywords" \
  --limit 30 \
  --archived=false \
  --json fullName,url,description,stargazersCount,forksCount,openIssuesCount,language,pushedAt,updatedAt,defaultBranch

For each candidate, record:

FieldSource
Repository name and URLgh search repos / gh repo view
DescriptionGitHub API or README line citation after clone
ActivitypushedAt, latest commit, release notes if present
Stars/forks/issuesGitHub API with retrieval date
Why it is relevantuser's product scope + repository evidence

Clone only candidates that are relevant to the user's product or analysis goal. For broad markets, first present a shortlist with evidence and then analyze the strongest set.

Repository Fact Gathering

Read files in this order and capture exact sources:

  1. Project metadata: package.json, pyproject.toml, Cargo.toml, go.mod, or equivalent.
  2. README and docs: positioning, screenshots, installation, pricing links.
  3. Entry points: main, bin, scripts, src/, app/, packages/.
  4. Core implementation: renderer, parser, storage, export, sync, auth, API, or domain-specific modules.
  5. Tests and fixtures: they often reveal supported data structures and edge cases.
  6. Releases/changelog: current direction and recent changes.

Use nl -ba <file> or an editor with line numbers before citing. Every technical claim about implementation needs file:line evidence.

Report Structure

For a single competitor, use references/profile_template.md.

For a landscape summary, use this structure:

# {Product} Competitor Landscape

## Source Register
| Competitor | Local path | Remote | Commit | Retrieved |
|---|---|---|---|---|

## Positioning
| Competitor | User segment | Primary promise | Source |
|---|---|---|---|

## Product And Technical Comparison
| Dimension | Competitor A | Source | Competitor B | Source | Our product | Source |
|---|---|---|---|---|---|---|

## Strengths
| Competitor | Strength | Evidence | Why it matters |
|---|---|---|---|

## Weaknesses And Gaps
| Competitor | Gap | Evidence | Opportunity |
|---|---|---|---|

## Opportunities
| Opportunity | Evidence base | Product implication | Confidence |
|---|---|---|---|

## Risks And Assumptions
| Item | What is known | What still needs verification | Next check |
|---|---|---|---|

Evidence Rules

Required

Claim typeRequired evidence
Dependency/framework/versionConfig file line citation
Feature supportREADME/docs line citation plus code citation when technical
Parser/export/storage behaviorCode line citation
Pricing/cloud-hosted claimOfficial page citation with retrieval date
Popularity/activityGitHub API/page citation with retrieval date
Opportunity judgmentEvidence rows it derives from plus explicit confidence

Forbidden

Do not write unsupported technical claims. Avoid these patterns unless they appear inside an explicit "bad example" block:

PatternWhy
"推测", "可能", "应该", "大概", "似乎"Blurs evidence and judgment
"未公开", "未披露"Pretends to know disclosure status
"architecture, inferred from UI"Technical architecture must come from code
Unsourced numbersCannot be audited later

When evidence is unavailable, write 待验证 and state the exact next check that would verify it.

Output Quality Bar

Before finishing, run the checks in references/analysis_checklist.md:

  • Local repository exists under $COMPETITORS_BASE/{product-slug}/.
  • Remote URL and latest commit are recorded.
  • Each technical claim has a file:line citation.
  • Market facts have a source and retrieval date.
  • Landscape judgments are separated from facts.
  • The final answer names gaps, opportunities, and risks without pretending they are code facts.

Script

Use scripts/update-competitors.sh as the starting point for durable competitor repository management:

COMPETITORS_BASE="$HOME/workspace/competitors" \
PRODUCT_NAME="{product-slug}" \
./scripts/update-competitors.sh status

./scripts/update-competitors.sh discover "claude code viewer"
./scripts/update-competitors.sh clone-url https://github.com/org/repo
./scripts/update-competitors.sh pull

The script is a template. For a long-running product, copy it into that product's own repo or operations directory and fill the persistent competitor list.

Relationship To Product Analysis

product-analysis may invoke this skill for compare mode. Keep this skill focused on competitor discovery, repository evidence, and competitive synthesis. Do not turn it into a general product audit orchestrator.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.