fdf

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 1 Imported by: 0

README

FDF — Feature Document Format

Documentation-as-a-directory for software features. Each feature is a Markdown + Gherkin document; its design spec, plan, acceptance tests, and tasks live in a paired directory beside it; an opinionated CLI validates the whole bundle so it can never silently drift.

docs/features/
├── INDEX.md                      # bundle root (pins fdf_version)
├── LOG.md
└── payments/
    ├── INDEX.md
    ├── instant-refunds.md        # Feature: Gherkin scenarios + status
    └── instant-refunds/
        ├── SPEC.md               # approved design
        ├── PLAN.md               # links every task
        ├── TEST.md               # scenario -> concrete proof
        ├── 01-refund-api.md      # Task (status, depends-on, resource)
        └── 02-refund-ui.md

Install

Binaries on the releases page, or with mise: mise use ubi:GiteshDalal/fdf, or go install github.com/GiteshDalal/fdf/cli/cmd/fdf@latest.

Use

fdf init                     # scaffold docs/features/ (or FDF_ROOT_DIR / --root)
fdf new payments/instant-refunds
fdf validate                 # F1-F8 + R1; exit 1 on any violation
fdf serve                    # browse the bundle (bun x mdts)
fdf install claude-code      # agent skills: brainstorm -> plan -> execute
fdf migrate                  # mechanical upgrade between spec versions

Works the same everywhere: the bundle may be a plain directory or a git submodule mounted at the same path — resource: paths always verify against the project root.

Spec

SPEC.md is normative; testdata/ fixtures are the executable conformance contract. MIT licensed.

Documentation

Overview

Package fdf exposes the repo's skills and harness assets to the CLI.

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Assets embeds the harness-neutral skills and per-harness adapters that `fdf install` places into a harness's configuration.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cli
cmd/fdf command
internal/bundle
Package bundle validates an FDF v0.2 bundle.
Package bundle validates an FDF v0.2 bundle.
internal/fdfroot
Package fdfroot resolves the project root (superproject-aware) and the bundle root (--root flag > FDF_ROOT_DIR > docs/features), per SPEC v0.2.
Package fdfroot resolves the project root (superproject-aware) and the bundle root (--root flag > FDF_ROOT_DIR > docs/features), per SPEC v0.2.
internal/install
Package install places the FDF skills into an AI harness's configuration.
Package install places the FDF skills into an AI harness's configuration.
internal/migrate
Package migrate mechanically upgrades a bundle between adjacent FDF spec versions.
Package migrate mechanically upgrades a bundle between adjacent FDF spec versions.
internal/scaffold
Package scaffold implements fdf init and fdf new.
Package scaffold implements fdf init and fdf new.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL