oma-market
Market research skill for pain-point extraction, trend detection, competitor positioning, and discovery across community sources (Reddit, X, YouTube, TikTok, HN, Polymarket, GitHub, arXiv, Techmeme, Bluesky, web and more). Delegates research to the always-latest mvanhorn/last30days engine via `oma market run`, adds oma's detect-trap preflight, intent-auto SWOT / Porter's 5F / PESTEL framing, and a single LAW-compliant brief. Use for market research, pain point analysis, trend detection, competitor research, user complaints, voice-of-customer, 시장조사, 사용자 페인, 트렌드, 경쟁구도.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- oma-market
- description
- Market research skill for pain-point extraction, trend detection, competitor positioning, and discovery across community sources (Reddit, X, YouTube, TikTok, HN, Polymarket, GitHub, arXiv, Techmeme, Bluesky, web and more). Delegates research to the always-latest mvanhorn/last30days engine via `oma market run`, adds oma's detect-trap preflight, intent-auto SWOT / Porter's 5F / PESTEL framing, and a single LAW-compliant brief. Use for market research, pain point analysis, trend detection, competitor research, user complaints, voice-of-customer, 시장조사, 사용자 페인, 트렌드, 경쟁구도.
02 资源文件 8
- 参考文档resources/checklist.md876 B
- 参考文档resources/error-playbook.md1.4 KB
- 参考文档resources/execution-protocol.md2.5 KB
- 参考文档resources/frameworks/pestel.md2.8 KB
- 参考文档resources/frameworks/porters-5f.md2.8 KB
- 参考文档resources/frameworks/swot.md2.4 KB
- 参考文档resources/intent-rules.md2.4 KB
- 参考文档resources/output-laws.md2.2 KB
03 SKILL.md 正文
Market Research Agent - Community Signal Intelligence
Scheduling
Goal
Run the upstream last30days research engine (always the latest release, managed by oma) for community-signal research, then frame the result for the user's intent (pain / trend / competitor / discovery) with strategic frameworks and save one brief under .agents/results/market/.
Intent signature
- User asks about pain points, user complaints, or voice-of-customer signals for a product or category.
- User asks what is trending, growing, or declining in a space this week or month.
- User asks how one product compares to another in community sentiment or positioning.
- User asks for discovery or exploratory market research on a topic, a person, a company, or a ticker.
When to use
- Extracting real user pain points from community posts (Reddit with real upvotes and top comments, HN, X, Bluesky, GitHub Issues)
- Detecting trends in a category over a window (
--days 7|30|90|180) - Competitor sentiment analysis and SWOT / Porter's 5F positioning
- Open-ended discovery research (
--discover), person mode, hiring signals (--hiring-signals), follow-up drills (--drill)
When NOT to use
- General web research without market framing -> use oma-search directly
- Academic literature -> use oma-scholar
- Live dashboards or scheduled monitoring ->
oma schedule <action>wrapping this skill
Expected inputs
- Topic string; optional
--intent pain|trend|competitor|discovery(else classified perresources/intent-rules.md) - Optional window (
--days),--vs <entity>(competitor),--frameworks auto|none|swot,5f,pestel - Any native last30days flag (see
oma market run --help) — passed through verbatim
Expected outputs
- Single markdown brief at
.agents/results/market/{topic-slug}-{YYYYMMDD}.md - First line: the engine's badge (
🌐 last30days v{VERSION} · synced {date}); body per the upstream OUTPUT CONTRACT; framework sections appended per intent; engine footer preserved - Raw engine artifacts under
market.save_dir(default.agents/results/market/raw/)
outputs:
- name: market-brief
description: Single LAW-compliant markdown brief with framework sections
artifact: ".agents/results/market/*.md"
required: true
Dependencies
oma market resolve/oma market run— engine location, Python 3.12+ resolution,--save-dirdefault- The upstream
SKILL.mdat the resolved engine root (skillMdinoma market resolve --json) — the authoritative research contract resources/intent-rules.md,resources/frameworks/,resources/output-laws.md,resources/execution-protocol.md
Control-flow features
oma market detect-trapgate before anything else (exit 2 = REFUSE, exit 4 = invalid)- Engine is always the latest release:
oma market resolverefreshes the managed copy (throttled) and falls back to the cached copy offline; a pinnedmarket.path/LAST30DAYS_HOMEopts out - Sources needing keys/cookies auto-skip inside the engine; keyless sources (Reddit, HN, GitHub, Polymarket, arXiv, Techmeme, Digg, web) always run
- Framework auto-toggle by intent (pain/trend → SWOT; competitor → SWOT + Porter's 5F; discovery → SWOT + PESTEL)
Structural Flow
Entry
- Run
oma market detect-trap "<topic>". Exit 2 → surface the REFUSE reason and reframe suggestion, stop. - Run
oma market resolve --json.ok: false→ reportreason(missing engine →oma market update; missing Python → the install hint) and stop. Never fall back to WebSearch-only synthesis and present it as market research. - Read the upstream contract at
engine.skillMdtop to bottom. It is long by design; do not skim. Treatengine.rootas itsSKILL_DIR. - Classify intent per
resources/intent-rules.md; map to engine flags and framework set.
Scenes
- PREPARE: detect-trap, resolve, read upstream SKILL.md, classify intent.
- UPSTREAM STEPS: follow the upstream SKILL.md exactly — Step 0 (first-run setup wizard, consent-driven), intent parsing, Step 0.45 (its own query-quality preflight), Step 0.5 / 0.55 (handle, subreddit, hashtag resolution when WebSearch is available), Step 0.75 (query plan). Skip only its "Runtime Preflight" Python-hunt block:
oma market runalready resolved the interpreter. - RUN: wherever the upstream contract says
"${LAST30DAYS_PYTHON}" "${SKILL_DIR}/scripts/last30days.py" <args>, runoma market run <args>with the same arguments (foreground, 5-minute timeout,--emit=compact).--save-diris added automatically frommarket.save_dirunless you pass one. - SYNTHESIZE: produce the brief exactly as the upstream OUTPUT CONTRACT dictates (badge first line, Ranked Evidence Clusters, LAWs). Then append the framework sections selected for the intent, using only clusters present in the engine output as evidence (
resources/frameworks/). - FINALIZE: run the self-check in
resources/output-laws.md, write.agents/results/market/{topic-slug}-{YYYYMMDD}.md, preview the first 50 lines.
Transitions
--vs <entity>or "A vs B" phrasing → competitor intent → upstream COMPARISON flow (two passes + head-to-head as its contract specifies) → SWOT + Porter's 5F.- Person / company / ticker topics → upstream person / hiring-signals / StockTwits handling applies unchanged.
engine.status: stale→ include thenotein the report (research ran on the cached engine version).
Failure and recovery
- detect-trap exit 2 → REFUSE; do not run the engine;
--forceonly on explicit user reconfirmation. oma market resolvenot ok → stop with the reason; no engine run.- Engine non-zero exit → report stderr verbatim; do not synthesize from partial stdout unless the upstream contract says the emitted compact output is still valid.
- Upstream Python-version gate / setup wizard messages → relay to the user exactly as the upstream contract instructs.
Exit
- Success: brief written with badge, clusters, frameworks, and engine footer; path reported.
- Partial: engine ran with skipped sources (footer lists them) — say so; never pad with invented evidence.
Logical Operations
Actions
| Action | SSL primitive | Evidence |
|---|---|---|
| detect-trap preflight | VALIDATE |
Topic arg, trap pattern rules |
| Resolve engine + Python | CALL_TOOL |
oma market resolve --json |
| Read upstream contract | READ |
engine.skillMd |
| Classify intent | SELECT |
resources/intent-rules.md |
| Upstream pre-research steps | INFER |
Upstream SKILL.md Steps 0–0.75 |
| Run engine | CALL_TOOL |
oma market run <args> |
| Synthesize + frameworks | WRITE |
Upstream OUTPUT CONTRACT, resources/frameworks/ |
| Self-check + write brief | WRITE |
resources/output-laws.md, .agents/results/market/ |
Tools and instruments
oma market detect-trap <topic>(preflight gate)oma market resolve [--refresh|--offline] [--json](engine + Python resolution; managed latest)oma market update(force-refresh the managed engine)oma market run <engine args…>(passthrough to the resolved upstream engine’s Python entry point)
Canonical command path
TOPIC="VS Code pain points"
oma market detect-trap "$TOPIC"
oma market resolve --json # read .engine.skillMd, then follow it
# … upstream Steps 0 / 0.45 / 0.5 / 0.55 / 0.75 …
oma market run "$TOPIC" --plan "$QUERY_PLAN_FILE" --subreddits=vscode --emit=compact --save-suffix=v3
Resource scope
| Scope | Resource target |
|---|---|
NETWORK |
Inside the engine only (its per-source fetchers); GitHub for the managed engine refresh |
LOCAL_FS |
~/.cache/oma-market/last30days/<tag>/ (engine), ~/.config/last30days/ (engine config, keys), .agents/results/market/ (brief + raw) |
PROCESS |
oma market subcommands → the resolved upstream Python entry point |
Preconditions
- Topic passes detect-trap.
oma market resolveis ok (engine present; Python ≥ 3.12 found on PATH, viauv, or pinned withmarket.python/LAST30DAYS_PYTHON).
Effects and side effects
- Writes the brief to
.agents/results/market/{topic-slug}-{YYYYMMDD}.mdand raw engine files tomarket.save_dir. - First run: the upstream setup wizard may write
~/.config/last30days/.env(with user consent) and, when Python 3.12 is absent butuvexists, may install a managed CPython 3.12 (~28 MB) after telling the user.
References
- Execution protocol:
resources/execution-protocol.md - Intent routing:
resources/intent-rules.md - Output contract:
resources/output-laws.md - Applicable framework:
resources/frameworks/swot.md,resources/frameworks/porters-5f.md, orresources/frameworks/pestel.md(load only the selected framework) - Validation:
resources/checklist.md - Recovery:
resources/error-playbook.md - Upstream engine instructions: read the resolved
engine.skillMdpath fromoma market resolve --json; upstream scripts are managed engine files, not bundled skill resources.
04 同仓库更多 Skills
type-strictness
Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when: (1) Editing code that contains `Any` as a type annotation (2) Code has `# type: ignore` or `# pyright: ignore` comments (3) User requests type fixes or type strictness enforcement (4) Importing from untyped third-party libraries (5) User asks to "fix types", "remove Any", or "add proper typing" (6) Pyrefly or mypy reports type errors that need resolution (7) Code review reveals weak typing patterns Follows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).
slopgate-test-extender
Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like "add tests for X", "extend these tests", "parametrize tests", "consolidate tests", "fix test quality", "improve test coverage", "write tests for this function", "test this module", "behavior tests", "integration tests", "missing tests", "coverage holes", "untested code", or when a hook denies with test-related findings.
slopgate-intelligent-coding-patterns
Pattern-selection playbook for agents editing code with complex branching, stateful parsers/workflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if/elif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider/language implementations, or regex/content transformation pipelines. Also load when asked to "apply a design pattern", "which pattern should I use here", "refactor this switch statement", "replace if-elif chain", "state machine pattern", "strategy pattern", "template method", "pipeline pattern", "specification pattern", "dispatch table", "guard clause refactor", "reduce cyclomatic complexity", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.
slopgate-hygiene-orchestrator
Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to "clean up lints", "fix all warnings", "run hygiene", "eliminate type errors", "orchestrate code quality fixes", "fix lint errors", "resolve quality gate failures", "pass CI checks", "reduce tech debt", "refactor to pass hooks", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.
slopgate-code-smell-utility-locator
Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code, scattered helpers, builders/factories/config/constants/dataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001, or repeated slopgate code-quality denials. Also load when asked to "find existing helpers", "consolidate utilities", "search for duplicate code", "where is this already implemented", "reuse existing logic", "don't duplicate this", "find similar functions", "utility inventory", "code smell radar", or before adding new helpers/wrappers so agents can find existing shared utilities and consolidate instead of duplicating.
slopgate-code-hygiene-refactor
Recovery playbook for Slopgate and project quality failures. Load after hook/lint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers / repeated literals, PY-CODE-012/PY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to "refactor this module", "split this file", "extract a class", "reduce complexity", "fix god class", "flatten module hierarchy", "move code to a package", "extract helpers", "consolidate duplicates", "replace magic numbers with constants", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.