Guides

Work with an AI agent (Daana plugin)

The Daana plugin gives an AI agent a set of workflow skills and specialist roles for a Daana project. It is optional. Daana CLI and the tutorial work without it.

The plugin is a workflow and review discipline for the agent, not a generator. The agent still writes the files, and Daana CLI still checks, deploys and runs them. The guide Check a mapping that an agent wrote describes the checks that apply to an agent's output, with or without the plugin.

llms.txt and llms-full.txt are generated for docs.daana.dev. There is no MCP server.

What the plugin contains

The plugin has 21 workflow skills and 6 specialist role definitions. They cover:

  • A business interview: the questions to settle with the business before modeling.
  • Ingestion: how the source data arrives.
  • DAS: DAS skills for contracts, a project-owned generator and staging validation in Dataform.
  • DAB: entities, attributes, relationships, mappings and verification.
  • DAR: requirements, grain, temporal semantics and supported DAR generation.
  • An independent review: a second opinion on the project's work.

Daana CLI covers DAB and DAR. The DAS skills work with files and tools the project owns. See How a project is organized.

The released files, release archives and the plugin's own documentation are in the daana-plugin repository. It is public and MIT-licensed.

Skills

The table lists the plugin's skills, except the DAS skills, so it has fewer rows than the total above. The "Use when" column holds the plugin's own description of each skill. The agent reads the description when a skill is invoked or considered, and its terms are the plugin's, not those of these docs. Invoke a skill by name to be sure it is used.

SkillLayerUse when
facilitating-agile-analyticsSharedinterviewing a business owner, clarifying an analytics decision or question, reviewing business definitions conversationally, or facilitating a question-led Agile Analytics loop. Technical model/mapping implementation uses the layer skills after meaning is reviewed.
querying-warehouseSharedpreparing or performing warehouse inspection, SQL analysis, profiling, or source-to-output reconciliation across data-platform layers.
answering-analytics-questionsSharedanswering a business analytics question from approved reporting outputs, including totals, slices, distinct counts, or effective-time and knowledge-time comparisons, without changing the model.
diagnosing-data-pipelinesSharedan analytics pipeline fails or layers disagree and the task is to locate the owning boundary, explain the evidence, and prepare a safe next step rather than perform recovery.
developing-landing-adaptersIngestionimplementing or changing a dlt landing adapter, provider acquisition boundary, observation envelope, or landing regression tests.
running-landing-loadsIngestionpreparing, running, or recovering a dlt landing load, historical backfill, or persisted pending load package.
authoring-dab-modelsDABauthoring DAB business entities, attributes, relationships, identity or time definitions, or drafting a first candidate from typed sources or legacy dbt/Dataform code without a business owner present.
authoring-dab-mappingsDABbinding reviewed DAB meaning or a labelled source-led candidate to source evidence, authoring mapping YAML, or changing source strategy and effective-time expressions.
running-dab-operationsDABpreparing, executing, refreshing, or recovering a Daana DAB workflow or deployment, including scoped operations and lineage investigation.
verifying-dab-outputDABchecking DAB source-to-base-to-serving results, timelines, flow totals, relationship cardinality, duplicates, or post-operation reconciliation.
investigating-dab-lineageDABtracing DAB physical rows, hidden duplicates, effective/version history or unexpected processing windows to the producing pipeline and workflow using metadata.
eliciting-dar-requirementsDARa reviewed business question needs a DAR fact grain, dimensions, temporal interpretation, reuse decision or runtime metric design, before choosing compiler output kinds.
authoring-dar-specsDARtranslating an approved analytical design into a Daana DAR specification or changing an existing declaration without changing its reviewed business meaning.
validating-dar-structureDARchecking DAR declarations, local generated SQL or dependency/schema readiness, including cases where a successful dry-run plan or preview may conceal missing deployed columns or invalid published object shape.
verifying-dar-outputDARindependently reconciling a DAR result, grain, measures, temporal joins or dimension coverage against approved requirements and source evidence, including synthetic and deployed comparisons.
running-dar-operationsDARpreparing, executing, retrying or reconciling a Daana DAR warehouse operation after analytical meaning is approved. Local-only check, lint, dry-run plans and SQLX previews use structural validation instead.

Roles

The table lists the plugin's specialist roles, except the DAS role, with the plugin's own description of each.

RoleAreaDescription
agile-analytics-facilitatorInterviewingAgile Analytics facilitator for business interviews, reviewed definitions, and one question-led analytics loop.
ingestion-specialistIngestionIngestion specialist for provider acquisition, dlt landing schemas, historical coverage, pending-package recovery, and reconciliation.
dab-specialistDABDAB specialist for reviewed business models, source mappings, generated behavior, and scoped operation preparation.
dar-specialistDARDAR specialist for analytical elicitation, supported declarations, result verification and scoped operation preparation.
data-platform-reviewerIndependent reviewIndependent read-only reviewer for Ingestion, DAS, DAB and DAR changes; explains findings and next steps in plain language.

Before you install

  • The plugin doesn't bundle Daana CLI, credentials or a hosted service. Its MIT license covers the plugin only. To install Daana CLI, see Prerequisites.
  • Installing the plugin grants no access to a target database.
  • Each project needs its own bindings: one project context document, referenced from the project's AGENTS.md. See Write the project context document.
  • Claude Code exposes the specialist agents. Codex needs a manual or project configuration route for them. See the plugin's usage guide.
  • The DAR workflows need a Daana CLI build that supports DAR. The plugin's release notes mark DAR execution as experimental and untested.
  • The supported hosts are Claude Code and Codex. Claude on the web and Cowork are not supported or tested.
  • daana@daana means the plugin daana from Daana's own marketplace. It is not a listing in an official plugin directory. See Marketplaces.

Install in Claude Code

These steps were run on Claude Code 2.1.325.

Add the marketplace:

claude plugin marketplace add daana-code/daana-plugin
✔ Successfully added marketplace: daana (declared in user settings)

To pin a release, add # and the release tag to the marketplace address:

claude plugin marketplace add daana-code/daana-plugin#v0.1.2

Install the plugin:

claude plugin install daana@daana
✔ Successfully installed plugin: daana@daana (scope: user)

Check the installation with claude plugin list. It lists daana@daana, version 0.1.2, with Status: ✔ enabled.

Start a new session, then invoke a skill by name, for example /daana:authoring-dab-models.

Install in Codex

These steps were run on codex-cli 0.171.0.

Add the marketplace:

codex plugin marketplace add daana-code/daana-plugin
Added marketplace `daana` from https://github.com/daana-code/daana-plugin.git.
Installed marketplace root: <HOME>/.codex/.tmp/marketplaces/daana

Codex's second line shows the folder where it installed the marketplace. <HOME> stands for the home folder, which Codex prints as a full path.

To pin a release, add --ref with the release tag:

codex plugin marketplace add daana-code/daana-plugin --ref v0.1.2

Install the plugin:

codex plugin add daana@daana
Added plugin `daana` from marketplace `daana`.
Installed plugin root: <HOME>/.codex/plugins/cache/daana/daana/<version>

The second line shows the folder where Codex installed the plugin. <version> is the plugin's version.

Check the installation with codex plugin list --json. Its entry for the plugin shows "pluginId": "daana@daana", "version": "0.1.2", "installed": true and "enabled": true.

Install a fixed release from the archives

Release v0.1.2 contains daana-claude-code-0.1.2.zip, daana-codex-0.1.2.zip, SHA256SUMS and CONTENTS.json. For a reproducible installation, verify an archive against SHA256SUMS and install it from a local directory. The plugin's usage guide gives the steps. This route was tested for this guide on Claude Code 2.1.325 and codex-cli 0.171.0.

Write the project context document

Every skill reads the project context document. daana init --example bookstore writes one for the tutorial project, project-context.md, together with the AGENTS.md that points to it, so the tutorial needs no drafting step. For your own project, neither daana init nor the plugin's installation creates it, so write it first. Invoke a Daana skill and ask the agent to draft the document from the project's files. Review it before the first real task, and reference it from the project's AGENTS.md.

The plugin's usage guide describes what the document contains. The data handling notes describe what the agent may read and where data goes.

Use it with the tutorial

In the tutorial, three parts of the plugin apply:

Skill or roleUse it for
authoring-dab-modelsAdding entities, attributes and relationships to dab/model.yaml
authoring-dab-mappingsWriting the mappings in dab/mappings/
data-platform-reviewerAn independent review of the model and mappings

Chapter 3, which adds an attribute, and chapter 5, in which you complete the order-line mapping from a scaffold, are good first uses. In chapter 5, complete the mapping with the agent before you open a correct answer, then compare your file with it. Run daana check after each change the agent makes, as in the tutorial.

Treat the review as a second opinion

The independent review is read-only. In Claude Code the reviewer can only read and search the project files: it runs no commands, checks or queries. In Codex the review runs as a separate read-only session. Some findings are concerns it couldn't confirm. Check each finding against a run: daana check, a deploy and execute on the tutorial's DuckDB file, and a query of the result. Chapter 8 shows a valid reporting declaration that reports revenue on the wrong days, and how a comparison per day finds it.

Release notes

The plugin's changes are in its release notes.