agent-security-hardening
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Tear down 3-6 competitors with parallel research agents (homepage messaging, pricing, ads they pay to run, lead magnets, launches, AI-citation presence) and synthesize the exploitable gaps into ./brand/competitors.md. Use when you need to know what competitors actually say and sell before positioning, pricing, or writing copy; also runs a non-interactive diff mode for scheduled competitor watching, an ad-recon mode for paid-ads counter-positioning, and a local mode for service businesses (the top 3 in the map pack and the top paid ads for a service and city, their promises, prices, review pace, and the top complaints across their reviews).
Competitor pages tell you what they claim; their ads tell you what they'll pay to claim; their pricing tells you who they're built for; their reviews tell you where they break. This skill collects all four in parallel, with verbatim evidence, and turns them into the three gaps you can actually exploit. Done means: a competitors.md another skill can act on without re-researching, where every claim traces to a quote or URL. The method is a floor, not a ceiling. When the category in front of you argues for a better path, take it and say why.
Only if ./brand/, ./brands/ or MARKETING.md exists (nothing to load otherwise), run:
python3 ${CLAUDE_SKILL_DIR}/../start-here/scripts/brand_context.py --for competitive-intel
(${CLAUDE_SKILL_DIR} is this skill's folder; outside Claude Code use the folder this
file was read from, e.g. .agents/skills/competitive-intel. If the script or python3 is
unavailable, read the brand folder directly: ./brands/<slug>/ when ./brands/active
names one, else ./brand/; then MARKETING.md, preferences.md and the files in
reads:. If none exist, proceed standalone and ask only for the category or
competitor names (or, for a local business, the main service and city).)
| Trigger | Mode |
|---|---|
| Default: names, URLs, a category, or nothing | TEARDOWN |
| "watch", "diff", "what changed", or any non-interactive/scheduled invocation | WATCH |
| "ads", "ad recon", "what ads are they running" | AD RECON |
| A local service business (brand files say so, or the request names a city, "near me" or Google Maps) | LOCAL |
WATCH and AD RECON are below the teardown sections. WATCH asks zero questions. It is what the weekly competitor-watch routine calls.
Target 3-6 competitors. Resolve in this order:
Category: line in positioning#market-assessment: search "best <category> tools", "<category> alternatives", and the G2/Capterra category page. Pick by ICP overlap, not size.We use Exa for the discovery searches: it finds the pages a keyword search misses, such as a smaller peer or an up-and-comer (free tier, then pay as you go). Without it, the same searches in WebSearch work.
Roster judgment: one aspirational leader (sets the category's vocabulary), two or three true peers (fight for the same buyer this quarter), one up-and-comer (shows where the category is moving). A roster of five peers tells you nothing about trajectory; a roster of five giants tells you nothing actionable. More than six competitors dilutes the synthesis. Depth beats coverage.
Check the web first. Phase 1's discovery search counts; otherwise run one WebSearch yourself before dispatching. If it is denied or errors, the subagents will be blocked too: don't dispatch. Write competitors.md from model knowledge instead (roster and known positioning, every price and count UNVERIFIED), labeled Data: MODEL KNOWLEDGE (not checked live) in the file, and say in one line in chat that allowing WebSearch and WebFetch (/permissions) and re-running makes it live.
Dispatch one subagent per competitor, all in parallel (Task tool, general-purpose). Budget per subagent: ≤ 40 fetches, ≤ 8 minutes, no sub-agents. Six surfaces is ~6-12 fetches, not a crawl. Each subagent gets the brief below plus the competitor's name and domain, and returns the evidence pack: facts, verbatim quotes, URLs. No analysis in the packs; synthesis happens centrally so claims can be compared across competitors. The packs are working data: save them to ./campaigns/competitive-intel/<date>-evidence.md and never paste them into chat.
Scraping rules for every subagent:
firecrawl_scrape, firecrawl_search): full-page reads, including the JavaScript-rendered pricing pages that a plain fetch returns as a shell (free tier of 1,000 credits a month, no card). Without it, use WebFetch + WebSearch, and if a fetch returns a shell, pull the page from a search cache and say so.SCRAPECREATORS_API_KEY set): for creator, social, and ad-library recon,
use only endpoints that ScrapeCreators documents at docs.scrapecreators.com;
baseline: use WebFetch/WebSearch on public pages and report any gaps. Or treg, one token
for many data APIs (pay per call), if you'd rather not open a separate account for social
and ad data.UNVERIFIED, never estimated. An unreachable surface is reported as NOT FOUND (checked: <urls>). Absence of ads or a changelog is itself a finding.Subagent brief: six surfaces per competitor (the default set; drop or add a surface when the category argues for it, saying which and why):
facebook.com/ads/library: search the advertiser, filter to their selling countries) and Google Ads Transparency Center (adstransparency.google.com). If those pages won't render in your tools, search for the advertiser's ad-library page and pull cached copies. Report: running ads at all (yes/no per platform), approximate active count, formats (static/video/carousel), hooks verbatim from 3-5 ads, the offers/destinations ads point to, and any ads that have run for months (longevity = the ad works).<category> tools", "<category> for <ICP>", "<leader> alternatives") through web search and note which roundups/comparison pages cite this competitor; separately note whether the model's own knowledge surfaces them for those queries (label that part MODEL KNOWLEDGE). Cited everywhere vs invisible is a positioning fact.Evidence pack format (returned by each subagent):
## <Competitor>: evidence pack (<date>)
**Homepage:** H1: "..." / Sub: "..." / CTA: "..." / Proof: ... / Talks to: ... [url]
**Pricing:** <tier>: <price>, gates: ... | Free/trial: ... | Contact-sales: ... [url]
**Lead magnets:** ... [urls]
**Ads:** Meta: <yes/no, ~count, formats>, hooks: "..." / "..." | Google: ... [library urls]
**Launches (90d):** <date>: ... | cadence: ... [url]
**AI citations:** cited in <n>/<m> roundups checked: <which> | model-knowledge: <present/absent>
**Flags:** UNVERIFIED/NOT FOUND items
Load references/teardown-judgment.md before synthesizing. It carries the read-between-the-lines layer: what packaging reveals about ICP and margin anxiety, why paid claims outrank homepage claims, struggling-vs-scaling signals, and how to weight review complaints.
Build four artifacts from the packs:
/positioning-angles consumes. Write it so that skill can act on it without re-reading the packs.What a good gap looks like vs a mediocre one (illustrative category: project-management tools):
Mediocre: "Competitors have weak content marketing." (No evidence, no mechanism, nothing to do Monday.)
Good: "All four competitors gate every lead magnet behind a 6-field form, and three of the four have G2 complaint clusters about 'sales calls after downloading a template' (12 reviews across them, past year). An ungated template library is a wedge none of them can copy without breaking their SDR pipeline. The move: an ungated template library, promoted with the unbought 'no sales call' ad angle."
The difference: a quote-traceable evidence chain, a reason the gap is structural for them, and a named next move.
Quality gate before writing (silent): walk the synthesis claim by claim: every assertion must trace to a quote or URL in an evidence pack. Anything resting on model knowledge gets labeled or cut. Cut or fix what fails; show only what passes. If learnings.md holds a relevant prior (e.g., a past angle that beat a saturated claim) and it changed a gap recommendation, say so in one line of the note. The data quality goes in the Sources and assumptions note in plain words ("Based on 5 competitors, 31 pages read live on Nov 13"); the Data: LIVE line stays in competitors.md only.
Write ./brand/competitors.md:
## Last updated
<date> by /competitive-intel. Data: LIVE (<n> competitors, <m> sources)
## Category
<category as researched>
## Positioning map
Saturated: "<claim>" (<who>) ... | Contested: ... | White space: ...
## Pricing landscape
Floor $X, ceiling $Y. <pattern read>. Table: competitor × entry/mid/top tier.
## Competitor profiles
### <Name> (<domain>)
Position: <their claim, verbatim H1> | Pricing: <tiers one-line> | Ads: <status + dominant hook>
Lead magnets: ... | Momentum: <launch cadence read> | AI citations: <read>
Weak where: <evidenced weaknesses>
[Link to the evidence pack in ./campaigns/competitive-intel/<date>-evidence.md]
## The 3 exploitable gaps
1. <gap> | evidence: ... | why they can't close it: ... | the move: ...
...
## Watch baseline
Per-competitor: pricing snapshot, H1, active-ads status, last launch date. (WATCH mode diffs against this.)
If competitors.md existed, version it to ./brand/.history/competitors.<date>.md first and show a 3-line summary of what changed, with no y/n interrogation. Update brand.yaml (file entry + timestamp). Then the chat summary per the output contract: deliverable header, the positioning map + 3 gaps (not the full packs, and not the profiles again), the Sources and assumptions note, Files saved, What's next.
Budget: re-check the recorded roster only: one agent per competitor, ≤ 12 fetches each, no discovery of new competitors (that is TEARDOWN's job), no sub-agents; the whole watch finishes in ≤ 10 minutes per client.
Called by the weekly competitor-watch routine. Zero questions, ever. Every decision below has a default.
./brand/competitors.md → the Watch baseline section. If the file is missing, run a TEARDOWN non-interactively (discover roster from the Category: line in positioning#market-assessment; if no category is recoverable from brand memory either, write a one-paragraph report stating the baseline is missing and how to create it, and stop).confirmed unchanged lines. Diff what matters: price or tier changes, new H1/subhead/CTA, ads started or stopped, new hooks in rotation, new lead magnets, launches since the baseline date, AI-citation appearances/disappearances../campaigns/competitor-watch/<YYYY-MM-DD>.md:## Competitor watch: <date>
Checked <n> competitors against the baseline from <baseline date>.
### Changes
- **<Competitor>**, <surface>: <was> → <now> (<evidence url>). *Why it matters: <one line>*
...
### No movement
<Competitors with zero deltas, one line>
### Recommended reactions
<0-3 items, only if a change genuinely warrants one, e.g., "X dropped entry price 30%:
re-check the value framing">
"No changes detected across all N competitors" is a valid, complete, short report. Never pad it.
Watch baseline section in competitors.md in place (version the old file to .history/ first), bump brand.yaml, append one line to ./brand/assets.md for the report.Deep-dive the paid layer only: what a category pays to say is its revealed conviction: hooks survive in rotation because they convert, and money spent saying something is the strongest signal it works (or that everyone is copying it). Output is a counter-positioning brief for /paid-ads and /positioning-angles.
start-here/references/schemas/ad-matrix.schema.json; keep the labels exact so /paid-ads can map cells).references/teardown-judgment.md first; the paid-vs-organic and longevity sections apply directly):
./campaigns/ad-recon/<YYYY-MM-DD>-<category>.md with the brief above, evidence-linked; run the quality gate silently as in Phase 3 and put the data quality in the closing Sources and assumptions note. If competitors.md exists, refresh each profile's ads line and bump brand.yaml; append the report to assets.md.For a business whose customers find it on a map: plumbers, roofers, dentists, med spas,
auto shops, cleaners. The rivals aren't a category list; they're whoever shows up above
the business for the search a customer types, in the map and in the ads. Load
references/local-teardown.md before Phase L2; it has the evidence pack, the review
counting rule and the local reading judgment.
Same rules as Phase 2 (check the web first, one subagent per rival, the same per-subagent
budget of 40 fetches and 8 minutes, verbatim quotes, UNVERIFIED and NOT FOUND instead of guesses). Google Maps
listings don't come through a plain page fetch, so the listing fields come from a
browser, the user's phone or pasted text; say which, once, in the closing note. Six surfaces per rival:
Mediocre vs good, for the sample business Hartline Plumbing, Dallas TX (illustrative):
Mediocre: "Competitors have some bad reviews about scheduling."
Good: "All three map-pack rivals run 'same-day' ads. Two of their ad pages never say it, and 11 of their 40 most recent 1 to 3 star reviews are about waiting two or more days for a tech. Hartline dispatches from one yard ten minutes from the middle of its area and can promise a two-hour window. The move: the window in the page headline, the window in the ad, and a review pace that proves it."
Write ./brand/competitors.md with a ## Local market section (the search, where and
when it was run, the scoreboard, the promise map, the complaints, the gaps) plus local
lines in Watch baseline (rating, review count, pace, ad promise) so WATCH mode can diff
them. The file header carries Data: LIVE (<n> rivals, map searched from <place> on <date>); in chat, say it once in the note in plain words ("map searched from the shop's side of town on Nov 13").
All modes follow the four-section contract (start-here/references/output-format.md): deliverable header with date and what the work is for, the synthesis content (never raw packs in chat), one Sources and assumptions note (plain words: what was read and when, anything marked unverified or not found, what to confirm; 10 lines at most), Files saved with exact paths and (new)/(updated) markers, What's next. Length: a teardown, ad recon or local report runs about 1,200 to 2,500 words; a watch report is as long as its changes.
| Mode | Writes |
|---|---|
| TEARDOWN | ./brand/competitors.md (+ .history version), ./campaigns/competitive-intel/<date>-evidence.md, brand.yaml |
| WATCH | ./campaigns/competitor-watch/<date>.md, competitors.md refresh, brand.yaml, assets.md |
| AD RECON | ./campaigns/ad-recon/<date>-<category>.md, competitors.md ads-lines refresh, assets.md |
| LOCAL | ./brand/competitors.md with the ## Local market section (+ .history version), the evidence file, brand.yaml |
Quick Mode: a narrow ask ("what does X charge?", "is Y running ads?") gets a single-competitor, single-surface answer: one subagent, no roster ceremony, no file rewrite unless the user asks. Deliver, then a one-line what's-next.
The offer line. In chat, after the What's next list, add one optional line matched to role in ./brand/preferences.md (role: owner | agency | builder):
It appears at most once per run, never inside a saved file, never when the user asked for no extras, and not for someone who is clearly already a client of the author's team.
Apply the edit, then make it stick: save a gold case to ./brand/gold/<this skill>/ and
one to three yes/no checks to ./brand/checks.md, and confirm in one line. Before handing
over any work, answer the checks the context block loaded, silently, and fix every no.
How: ${CLAUDE_SKILL_DIR}/../start-here/references/taste-loop.md.
/positioning-angles: the positioning map's saturated/contested/white-space triage is its direct input; pick the angle the category left open (~15 min)/paid-ads: counter-position against the over-bought hooks from ad recon (~20 min)/audience-research: competitor review complaints found here become VoC mining targets (~20 min)/schedule with the weekly competitor-watch prompt (automations/routines/weekly-competitor-watch.md in the library repo) so WATCH mode runs without you (~5 min)/reviews to close the review pace gap and answer what's owed (~20 min); /landing-page to put the winning promise on the page the ads open (~30 min)AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail203k4,904 new stars in the last 7 days
GAgarrytan/gstack143k598 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
RUruvnet/RuView106k739 new stars in the last 7 days