Agent skill
market-context
Build a normalized market-context JSON bundle for a single symbol and timestamp.
Install this agent skill to your Project
npx add-skill https://github.com/proompteng/lab/tree/main/skills/market-context
SKILL.md
market-context
Build a normalized market-context JSON bundle for a single symbol and timestamp.
Scripted workflow
- Run lifecycle API client:
skills/market-context/scripts/market_context_run_api.py - Finalize payload validator:
skills/market-context/scripts/validate_market_context_payload.py - JSON Schemas:
skills/market-context/schemas/market-context-run-start.schema.jsonskills/market-context/schemas/market-context-run-progress.schema.jsonskills/market-context/schemas/market-context-run-evidence.schema.json
Lifecycle endpoints
POST /api/torghut/market-context/runs/startPOST /api/torghut/market-context/runs/progressPOST /api/torghut/market-context/runs/evidencePOST /api/torghut/market-context/runs/finalizeGET /api/torghut/market-context/runs/{requestId}
Example sequence
python3 skills/market-context/scripts/market_context_run_api.py start \
--callback-url "<callbackUrl>" \
--request-id "<requestId>" \
--symbol "<symbol>" \
--domain "<fundamentals|news>" \
--reason "<reason>"
python3 skills/market-context/scripts/market_context_run_api.py progress \
--callback-url "<callbackUrl>" \
--request-id "<requestId>" \
--seq 1 \
--status running \
--message "collection_started"
python3 skills/market-context/scripts/validate_market_context_payload.py \
--domain "<fundamentals|news>" \
--file /tmp/market-context.json
python3 skills/market-context/scripts/market_context_run_api.py finalize \
--callback-url "<callbackUrl>" \
--request-id "<requestId>" \
--payload-file /tmp/market-context.json \
--expect-status 200
Output contract
Return JSON with keys:
context_versionas_of_utcsymbolfreshness_secondssource_countquality_scorepayloadcitations
Rules
- Use UTC ISO timestamps.
- Include stale or missing domains in
payload.risk_flags. - Keep quality scoring deterministic from source freshness.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
temporal
Operate Temporal workflows with explicit namespace/address: inspect runs, fetch history, debug nondeterminism, reset/cancel/terminate, and inspect task queues.
gitops
GitOps workflows for this repo: edit Argo CD/Kubernetes/infra manifests in version control, validate changes, and rely on Argo CD to sync. Use when tasks touch argocd/, kubernetes/, tofu/, ansible/, or deployment/runbook changes, or when asked to roll out services via GitOps.
news-sentiment
Extract structured, source-attributed sentiment context for one symbol.
research-brief
Generate a concise research brief with uncertainty and citations.
memories
Save and retrieve memories or embeddings via the repo helpers or API. Use when working with embedding config or memory storage.
repo-map
Navigate this repo quickly to find the correct app, package, or service, and identify the right files for changes.
Didn't find tool you were looking for?