database-analytics-and-reporting
Direct SQL & Analytical Query Playbook: Schema inspection, safe read-only SQL queries, performance joins, debate transcript exports, and custom metric…
Skill by alakbarr
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alakbarr-database-analytics-and-reporting
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/database-analytics-and-reporting
What's inside
- Skill name
database-analytics-and-reporting- Description
- Direct SQL & Analytical Query Playbook: Schema inspection, safe read-only SQL queries, performance joins, debate transcript exports, and custom metric synthesis.
- License
- MIT
- Instructions
- 59 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Database Analytics & Structured Reporting Playbook
## 1. Overview & Data Schema Topology
Monika maintains a comprehensive relational database (PostgreSQL / SQLite) tracking market microstructure, trading decisions, risk evaluations, and execution records.
Key Tables:
- `trade_signals`: Generated AI trade opportunities with signal direction, confidence, and reasoning.
- `positions`: Real-time and historical MT5 positions, entry/exit prices, profit/loss, and commission.
- `asset_analyses`: Structured outputs from specialist agents with entry zones, stop losses, and take profits.
- `price_ohlcv`: Granular candlestick price data across multiple timeframes.
- `activity_logs`: Immutable audit trail of agent executions and system events.
- `risk_states`: Real-time risk gate tracking, daily drawdowns, and kill switch states.
## 2. Safety Guidelines for SQL Execution
1. **Read-Only Analytics**:
- `SELECT` queries are freely executed via `query_database_sql` and `run_analytical_query`.
- Complex aggregations (`GROUP BY`, `JOIN`, `HAVING`, window functions) are fully supported.
2. **Mutations Guardrail**:
- Direct `UPDATE`, `INSERT`, or `DELETE` statements via `query_database_sql` are strictly blocked.
- Any database mutation must be routed through `propose_action(action_type="db_mutation", ...)` with Admin privilege.
- Immutable tables (`activity_logs`, `order_events`) cannot be mutated under any circumstances.
## 3. High-Frequency Analytical Query Patterns
### Win Rate by AI Confidence Decile
```sql
SELECT
ROUND(s.confidence, 1) AS conf_bucket,
COUNT(*) AS total_trades,
SUM(CASE WHEN p.pnl > 0 THEN 1 ELSE 0 END) AS wins,
ROUND(SUM(CASE WHEN p.pnl > 0 THEN 1 ELSE 0 END)::numeric / COUNT(*), 3) AS win_rate,
ROUND(AVG(p.pnl), 2) AS avg_pnl
FROM positions p
JOIN trade_signals s ON p.analysis_id = s.id
WHERE p.status = 'closed'
GROUP BY ROUND(s.confidence, 1)
ORDER BY conf_bucket DESC;
```
### Cumulative Slippage by Symbol
```sql
SELECT
symbol,
COUNT(*) AS total_fills,
ROUND(AVG(slippage_pips), 2) AS avg_slippage_pips,
MAX(slippage_pips) AS max_slippage_pips
FROM order_logs
WHERE status = 'filled'
GROUP BY symbol
ORDER BY avg_slippage_pips DESC;
```
## 4. Analytical Tools in Monika
- `inspect_database_schema(table_name)`: Returns columns, data types, primary keys, and relationships.
- `query_database_sql(query, limit)`: Runs read-only SQL queries with automatic limit capping.
- `run_analytical_query(query_type, params)`: Runs pre-compiled institutional analytics (Sharpe, drawdown duration, edge decay).
- `export_dataset_file(table_name, format)`: Exports database records directly to CSV or Parquet for offline modeling.From alakbarr/Monika, MIT.
More from alakbarr/Monika
- 0.561score
desktop-gui-computer-use
alakbarr
Desktop GUI Interaction & Computer Use Playbook: Screen inspection, MetaTrader 5 window snapping, mouse click automation, and keystroke dispatching.
SkillAFreshness: AClaude Code +9 - 0.561score
os-terminal-automation
alakbarr
Universal Terminal & Process Execution Playbook: Controlled shell execution, process monitoring, background task supervision, and operator safety gating.
SkillAFreshness: AClaude Code +9 - 0.558score
systematic-debugging
alakbarr
Scientific root-cause analysis, log inspection, and defect remediation for Monika.
SkillAFreshness: AClaude Code +9 - 0.558score
web-research-fallback
alakbarr
Web research cascade: API, RSS, WebSearch, DrissionPage browser, and PDF parsing.
SkillAFreshness: AClaude Code +9 - 0.558score
academic-literature
alakbarr
Synthesize mathematical formulations and alpha mechanics from quantitative papers.
SkillAFreshness: AClaude Code +9 - 0.558score
code-optimization
alakbarr
Minimal, dependency-light, async-first software architecture and code optimization.
SkillAFreshness: AClaude Code +9 - 0.558score
codebase-inspection
alakbarr
Monika codebase structure auditing, module navigation, and invariant verification.
SkillAFreshness: AClaude Code +9 - 0.558score
data-science-modeling
alakbarr
Vectorized data processing, TimesFM time-series forecasting, and statistical modeling.
SkillAFreshness: AClaude Code +9 - 0.558score
devops-automation
alakbarr
Monika daemon supervision, Docker VPS deployment, and graceful process management.
SkillAFreshness: AClaude Code +9 - 0.558score
financial-research
alakbarr
Cross-asset research, prediction market analysis, derivatives positioning, and sentiment distillation.
SkillAFreshness: AClaude Code +9 - 0.558score
institutional-document-reporting
alakbarr
Institutional document and pitch deck generation (Word .docx, PowerPoint .pptx, Excel .xlsx, PDF tearsheets).
SkillAFreshness: AClaude Code +9 - 0.558score
adjudication-framework
alakbarr
Stage 2 synthesis adjudication rules for specialist conflict resolution.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 12, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/alakbarr/Monika
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from alakbarr
- 0.561score
os-terminal-automation
alakbarr
Universal Terminal & Process Execution Playbook: Controlled shell execution, process monitoring, background task supervision, and operator safety gating.
SkillAFreshness: AClaude Code +9 - 0.561score
desktop-gui-computer-use
alakbarr
Desktop GUI Interaction & Computer Use Playbook: Screen inspection, MetaTrader 5 window snapping, mouse click automation, and keystroke dispatching.
SkillAFreshness: AClaude Code +9 - 0.558score
systematic-debugging
alakbarr
Scientific root-cause analysis, log inspection, and defect remediation for Monika.
SkillAFreshness: AClaude Code +9 - 0.558score
quant-math-verification
alakbarr
Institutional quantitative mathematics, formula verification, and statistical edge calculation standards.
SkillAFreshness: AClaude Code +9 - 0.558score
academic-literature
alakbarr
Synthesize mathematical formulations and alpha mechanics from quantitative papers.
SkillAFreshness: AClaude Code +9 - 0.558score
web-research-fallback
alakbarr
Web research cascade: API, RSS, WebSearch, DrissionPage browser, and PDF parsing.
SkillAFreshness: AClaude Code +9
Cite this page
database-analytics-and-reporting skill. Agent Mart. https://agentmart.dev/skills/alakbarr-database-analytics-and-reporting (last updated 2026-10-24)