.claude/skills/domain-alpha-discovery-ops/SKILL.md
Alpha discovery local testing and production monitoring
npx skillsauth add d0nghyun/neuron domain-alpha-discovery-opsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
How to test alpha discovery locally and monitor sessions in production.
modules/arkraft/arkraft-agent-alphav2
cd modules/arkraft/arkraft-agent-alphav2
# Single step
uv run python test_run.py design
# All 6 steps sequentially
uv run python test_run.py all
workspace/test-run/topic.json with example hypothesis if missingpython main.py --session-id SID --topic-id TID design # Phase 1
python main.py --session-id SID --topic-id TID prep # Phase 2
python main.py --session-id SID --topic-id TID explore # Phase 3
python main.py --session-id SID --topic-id TID review # Phase 4
python main.py --session-id SID --topic-id TID implement # Phase 5
python main.py --session-id SID --topic-id TID evaluate # Phase 6
# Override max turns
python main.py --session-id SID --topic-id TID explore -t 30
| Step | Default | |------|---------| | design | 15 | | prep | 40 | | explore | 50 | | review | 15 | | implement | 40 | | evaluate | 60 |
# Interactive shell with live code reload (mounts ./src:/app/src)
docker-compose run agent-dev
# Inside container
python main.py --session-id test --topic-id my-topic design
Requires: external arkraft Docker network.
| Variable | Local Default | Purpose |
|----------|--------------|---------|
| CLAUDE_OAUTH_TOKEN_{1,2,3} | — | OAuth tokens (rotation) |
| AVAILABLE_TOKENS | 1,2,3 | Token indices |
| S3_BUCKET | arkraft-production | Output bucket |
| AWS_REGION | ap-northeast-2 | AWS region |
| REDIS_URL | redis://localhost:6379 | Event pub/sub |
| RABBITMQ_URL | amqp://arkraft:arkraft@rabbitmq:5672/arkraft | Callback queue |
| ARKRAFT_TEAM_ID | — | Tenant ID |
| ARKRAFT_API_URL | — | API base URL |
uv run ruff check src/
uv run ruff format src/
Agent → RabbitMQ callback → Celery task → DB update + Redis Pub/Sub → SSE → Web UI
Agent → S3 workspace sync (chat_logs, artifacts)
Full route reference: ROUTES.md
Key SSE endpoints:
GET /alpha/discovery/{session_id}/stream — session-levelGET /alpha/discovery/{session_id}/{topic_id}/stream — topic-levelGET /api/alpha/sessions/{id}/stream — web BFF proxy| Channel | Events |
|---------|--------|
| alpha:discovery:{session_id} | topic_added, update_status, insight_started/failed |
| alpha:topic:{topic_id} | alpha.registered, alpha.evaluated, workspace.sync |
Agent → RabbitMQ (agent.callback / callback.alpha) → Celery (handle_alpha_callback) → DB + Redis Pub/Sub.
Fallback: S3 sentinels at callback-sentinels/alpha/{session_id}/{topic_id}/.
created → running → completed / failed (terminal, cannot overwrite)
src/usage_tracker.py — call count, duration, errorsnow.hour // 2 % len(tokens)).claude-id + _cli.jsonl per step (cleared at step start)test_run.py bypasses S3/callback — artifacts stay in local workspace/test-run/modules/arkraft/), not the repo root.claude-id is per-step only — cannot resume across different stepsdatabases
Notion schedule management. Query today/weekly schedules, add/modify/complete schedules.
testing
Recap session memory into vault and validate vault structure
testing
Counterfactual review of decision paths after Moderate+ tasks
tools
Create a release with version tag. Converts UNRELEASED.md to version file and creates git tag.