Oma market

From first-fluke/oh-my-agent · View interactive version

Oma market is an AI agent skill from the GitHub repository first-fluke/oh-my-agent. Research customer pain points, trends, and competitors through the OMA market engine. Use for market discovery or voice-of-customer analysis.

How to use this skill

Skill file

Market Research Agent - Community Signal Intelligence

Scheduling

Goal

Run the installed upstream last30days research engine 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

When to use

When NOT to use

Expected inputs

Expected outputs

outputs:
  - name: market-brief
    description: Single LAW-compliant markdown brief with framework sections
    artifact: ".agents/results/market/*.md"
    required: true

No CLI gate reads this block for oma-market (oma verify checks outputs: only for agent-type skills); the self-check in resources/output-laws.md enforces the brief.

Dependencies

Structural Flow

Transitions

Failure and recovery

Exit

Logical Operations

Canonical command path

  1. Run oma market detect-trap "<topic>" before anything else. Exit 2 โ†’ surface the REFUSE reason and reframe suggestion, stop. Exit 4 โ†’ invalid topic, stop.
  2. Run oma market resolve --json. It is ok when the engine is present and Python โ‰ฅ 3.12 is found on PATH, via uv, or pinned with market.python / LAST30DAYS_PYTHON. ok: false โ†’ report reason (missing engine โ†’ ask the user, then oma market update; missing Python โ†’ the install hint) and stop.
  3. Read the upstream contract at engine.skillMd top to bottom. It is long by design; do not skim. Treat engine.root as its SKILL_DIR.
  4. Classify intent per resources/intent-rules.md; map to engine flags and framework set. Record the intent, flags, and frameworks with subject market.route-selection per references/_shared/runtime/route-selection.md (explicit flag, --vs, or the keyword score that decided it).
  5. 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 run already resolved the interpreter.
  6. Wherever the upstream contract says "${LAST30DAYS_PYTHON}" "${SKILL_DIR}/scripts/last30days.py" <args>, run oma market run <args> with the same arguments (foreground, 5-minute timeout, --emit=compact); it passes them through to the resolved upstream engine's Python entry point. --save-dir is added automatically from market.save_dir unless you pass one.
  7. Produce the brief exactly as the upstream OUTPUT CONTRACT dictates (badge first line, Ranked Evidence Clusters, LAWs). Then add the framework sections selected for the intent between the engine body and the engine footer, using only clusters present in the engine output as evidence (resources/frameworks/).
  8. Write .agents/results/market/{topic-slug}-{YYYYMMDD}.md, run the self-check in resources/output-laws.md against the written file, fix and re-check, then preview the first 50 lines.
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 and effects

Guardrails

References

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.