Deft directive cost

From deftai/directive · View interactive version

Deft directive cost is an AI agent skill from the GitHub repository deftai/directive. Pre-build cost & budget transparency phase. Use after the project SPECIFICATION is approved and before the build skill kicks off, to produce a plain-English COST-ESTIMATE.md the user can read, react to, and explicitly accept, rescope, no-build, or skip with a recorded reason. Audience is non- techni

How to use this skill

Skill file

<!-- AUTO-GENERATED by task packs:render -- DO NOT EDIT MANUALLY -->

<!-- Purpose: rendered skill -->

<!-- Source of truth: packs/skills/skills-pack-0.1.json -->

<!-- Regenerate with: task packs:render -->

<!-- Edit the source, not this file. Slice instead of loading every SKILL.md: task packs:slice skills by-trigger --trigger <kw> (or list) -->

Deft Directive Cost

Plain-English cost & budget transparency phase between SPECIFICATION

approval and build kickoff. Closes the adoption-blocker surfaced by

issue #739 (and issue #151 umbrella) where users finished the spec

flow and stopped at build because deft offered no cost signal.

Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.

When to Use

this cost", or asks to estimate cost before building

Audience & Voice

numbers. No spreadsheets, no scientific notation, no industry jargon.

typical / high**.

"amortised", "blended rate", "unit economics", "FTE", or any other

term a non-technical user is unlikely to know.

Methodology lives in references/cost-models.md. The canonical body of

the artifact lives in templates/COST-ESTIMATE.md.

Platform Detection

! Before resolving any config paths, detect the host OS from your

environment context and resolve the USER.md path:

| Platform | USER.md default path |

|--------------------|-------------------------------------------------------------------|

| Windows | %APPDATA%\deft\USER.md (e.g. C:\Users\{user}\AppData\Roaming\deft\USER.md) |

| Unix (macOS/Linux) | ~/.config/deft/USER.md |

Path resolution mirrors skills/deft-directive-build/SKILL.md so the

two skills agree on the user's preferences file.

Inputs

Phases

Phase 1 -- Read the spec & detect categories

project: hosting / infrastructure, API / third-party fees, pre-flight

account sign-ups, build & maintenance time. Drop categories that do

not apply.

"Because the spec says we will use an LLM, the AI / LLM row applies

and is usually the largest swing factor").

Phase 2 -- Draft `COST-ESTIMATE.md`

COST-ESTIMATE.md.

band. Use whole numbers where the precision does not matter.

100 active users per day, each doing 5 main actions"). The same

project shape can be \$10 / month or \$10,000 / month depending on

traffic, so the assumption is required.

roll-up loose -- adding a range to a range gives a range; do NOT

collapse to a single number.

scale considerations note explaining what would push the project

from typical to high (e.g. "media-heavy traffic blows up egress").

international users know to convert.

a snapshot; vendor pricing changes.

Phase 3 -- Read it back to the user

high), and the scale considerations note (if present).

Phase 4 -- Decision point (build kickoff confirmation menu)

! Present the user with this exact, numbered menu. Per the framework

menu rule (#767), Discuss and Back MUST be the final two numbered

options. The four substantive choices come first.

This is your project's cost estimate. Pick one.

1. Build              -- accept the cost and start the build phase
2. Rescope            -- keep building but reduce cost first
3. No-build           -- stop here; record the reason
4. Skip               -- skip the cost phase; record a short reason
5. Discuss            -- ask follow-up questions before deciding
6. Back               -- return to the previous step (e.g. spec edits)

two numbered options) per the #767 framework rule.

Decision recorded (decision, date, recorded-by, reason). The

reason field is REQUIRED for rescope, no-build, and skip (so

that the artifact's existence is auditable). The reason field is

optional for build.

skills/deft-directive-refinement/SKILL.md to pull spec scope back,

or the interview), then re-run this skill from Phase 1.

applicable lifecycle scope xBRIEFs accordingly, exit, and do NOT chain into the build

skill.

and proceed to the build kickoff.

to the build kickoff.

proceed without an explicit choice from options 1-4.

re-running this skill.

point to the user.

Output Targets

finalised in Phase 4 with the recorded decision.

via a references entry of type x-xbrief/spec-section so future

agents discover the cost decision when re-reading the project

definition.

Anti-Patterns

bands.

artifact or skill prose -- the audience is non-technical.

until the user has explicitly chosen build / rescope / no-build /

skip(+reason).

the menu -- they MUST be the final two numbered options per #767.

surfacing the decision point.

the reason MUST be recorded so the artifact's existence is auditable.

snapshot; pricing changes over time.

contract; international users convert manually.

say "expected", "typical", or "in our estimate".

EXIT

When the user makes a decision in Phase 4 and the decision is recorded

in COST-ESTIMATE.md:

for targeted spec edits, then re-run this skill

⊗ Exit this skill silently without confirming completion or providing

next-step instructions.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.