Oma market

From gracefullight/krds · View interactive version

Oma market is an AI agent skill from the GitHub repository gracefullight/krds. 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 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

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

Dependencies

Control-flow features

Structural Flow

Entry

  1. Run oma market detect-trap "<topic>". Exit 2 β†’ surface the REFUSE reason and reframe suggestion, stop.
  2. Run oma market resolve --json. ok: false β†’ report reason (missing engine β†’ ask the user, then oma market update; missing Python β†’ the install hint) and stop. Never fall back to WebSearch-only synthesis and present it as market research.
  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 ../_shared/runtime/route-selection.md (explicit flag, --vs, or the keyword score that decided it).

Scenes

  1. PREPARE: detect-trap, resolve, read upstream SKILL.md, classify intent.
  2. 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 run already resolved the interpreter.
  3. RUN: 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). --save-dir is added automatically from market.save_dir unless you pass one.
  4. 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/).
  5. FINALIZE: run the self-check in resources/output-laws.md, write .agents/results/market/{topic-slug}-{YYYYMMDD}.md, preview the first 50 lines.

Transitions

Failure and recovery

Exit

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

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 | installed skill dir such as ~/.agents/skills/last30days/ (engine), ~/.config/last30days/ (engine config, keys), .agents/results/market/ (brief + raw) |

| PROCESS | oma market subcommands β†’ the resolved upstream Python entry point |

Preconditions

Effects and side effects

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.