Database Code One Task
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Generate the query/queries a single database plan task calls for, execute the ones that are safe to execute,
and leave a clear record of both in database-report.md.
Purpose
iru-database-code-one-task is the database counterpart to iru-java-code-one-task/iru-dotnet-code-one-task, but its
deliverable is usually not application source code — it’s the query text itself, grounded in the actual schema
rather than invented table/column names, plus real results wherever it’s safe to obtain them. It reuses this
conversation’s own iru-explore findings (or runs iru-explore fresh if none exist yet) to ground each query in the
real database engine, schema, and ticket context, classifies every generated query as read-only/idempotent or
a write, and — only for the read-only ones, and only if a matching database MCP is connected — executes it and
captures what comes back. Write queries are always generated but never executed, since a properly configured
database MCP is expected to reject them by design. Everything lands in database-report.md, ending with a
reminder that the user should verify its contents and that committing it is a decision for a later step.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
Yes |
The task’s own text: the operation requested, the named table(s)/collection(s)/field(s), and any sub-tasks. |
None — this skill has nothing to do without a task to implement. |
Outputs
-
The query/queries the task calls for, written in the query language matching the detected database engine (SQL for relational engines, MongoDB query/aggregation syntax, N1QL for Couchbase, etc.), grounded in the real schema.
-
Each query classified as read-only/idempotent or write.
-
For read-only queries, if a matching database MCP is connected: the query executed and its returned data (or error) captured. Write queries are always generated only, never executed.
-
database-report.mdat the repository root, created or appended to, with one entry per query: its text, classification, and (if executed) the data returned or the error. -
Every query, and any data returned, shown to the user directly in the conversation.
-
A reminder to the user to verify
database-report.md’s contents, and that whether to commit it is a decision for a later step — this skill never runs `git add/git commititself. -
A short summary handed back to the caller: queries generated, read-only vs. write counts, how many were executed (and against which engine/MCP) vs. skipped and why, and whether the task stopped on a blocker.
Execution flow
Dependencies
Invokes
-
Explore — reused from earlier in the conversation if it already ran, or run fresh otherwise, to ground the query/queries in the real schema, database engine, and any ticket context.
Invoked by
-
Database Code One Task Group — once per task in a database-tagged bucket, one at a time, in the plan’s order.
Source
SKILL.md on GitHub — the file this page was generated from.