Competitive analysis

From jikig-ai/soleur · View interactive version

Competitive analysis is an AI agent skill from the GitHub repository jikig-ai/soleur. This skill should be used when running competitive intelligence scans against tracked competitors, or auditing a peer skill-library repo via peer-plugin-audit. Produces structured knowledge-base reports.

How to use this skill

Skill file

<!-- soleur-cloud-mode:start -->

Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name"[[:space:]]*:[[:space:]]*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.

<!-- soleur-cloud-mode:end -->

<!-- grok-harness-invoke:start -->

Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.

<!-- grok-harness-invoke:end -->

Competitive Analysis

Run a competitive intelligence scan (monthly tiered report) or a targeted peer-plugin audit. Both modes produce structured output in the knowledge-base/product/competitive-intelligence.md index plus dated-record shards under knowledge-base/product/competitive-intelligence/ (see references/living-kb-doc-sharding.md).

Sub-Modes

| Mode | Invocation | Purpose |

|---|---|---|

| Tier scan (default) | skill: soleur:competitive-analysis [--tiers 0,3] | Monthly competitive intel report across tracked tiers |

| Peer-plugin audit | skill: soleur:competitive-analysis peer-plugin-audit <repo-url> | Audit a peer skill library/plugin, seed the Skill Library tier with a structured 4-section report |

Steps

1. Detect Invocation Mode

peer-plugin-audit sub-mode (checked first):

If arguments start with peer-plugin-audit:

competitive intelligence mode (existing):

If arguments are present (non-empty):

If no arguments, proceed to Step 2.

2. Interactive Tier Selection (skipped if args provided)

Use AskUserQuestion to select tiers:

3. Run Competitive Intelligence Agent

Spawn the soleur:product:competitive-intelligence agent via Task tool:

Task soleur:product:competitive-intelligence: "Run a competitive intelligence scan for tiers <TIERS>. Research each competitor in the specified tiers, read brand-guide.md and business-validation.md for positioning context, and write the report as the index at knowledge-base/product/competitive-intelligence.md with dated/detail shards under knowledge-base/product/competitive-intelligence/."

4. Report Results

After the agent completes:

Scheduled Execution

This skill runs monthly via the Inngest cron cron-competitive-analysis (apps/web-platform/server/inngest/functions/cron-competitive-analysis.ts; 0 9 1 * *). The agent does NOT commit or push: the platform persists allowlisted changes and opens a PR handler-side via safeCommitAndPr after the run, gated on the audit-trail issue ("[Scheduled] Competitive Analysis - <date>") being created first.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.