This page is for day-to-day lookup.

Commands#

CommandMeaningNotes
intend initInitialize the owned workspace layoutChecks required tools before writing files
intend new <name>Create an owned bundleCreates spec, feature, and trace
intend new --mode contrib --from-gh owner/repo#123 <name>Create a contribution shadow bundleRequires git and gh
intend lock <name>Lock an owned bundle for the first timeFails if it is already locked
intend lock --mode contrib <name>Lock a contribution bundleWrites under Git metadata
intend trace <name>Validate and compare an owned bundle to its lockReports contract drift if the baseline changed
intend trace --mode contrib <name>Validate and compare a contribution bundleReads from the shadow bundle
intend amend <name>Record an intentional contract changeIncrements the lock version
intend amend --mode contrib <name>Amend a contribution bundleSame rule, different storage location
intend delete <name>Delete an owned bundleRefuses locked bundles unless --force is used
intend delete --mode contrib <name>Delete a contribution bundleRemoves the shadow bundle, refuses locked bundles unless --force is used
intend verifyTrace all bundles, then run repo checksUses external tools
intend agent install cursorInstall managed Cursor slash commands and skillsSafe to re-run, migrates the old workflow command, refuses overwrite of edited managed files

Exit codes#

CodeMeaning
0success
1contract drift or command failure
2invalid CLI usage

Owned workspace layout#

After intend init:

specs/
features/
.intend/trace/
.intend/locks/

For an owned bundle called add-login:

specs/add-login.md
features/add-login.feature
.intend/trace/add-login.json
.intend/locks/add-login.json

Contribution bundle layout#

For a contribution bundle called fix-issue-123:

$(git rev-parse --git-dir)/intend/contrib/fix-issue-123/
├── issue.json
├── specs/fix-issue-123.md
├── features/fix-issue-123.feature
├── trace/fix-issue-123.json
└── locks/fix-issue-123.json

The contribution bundle stays under Git metadata, not in the tracked working tree.

Required tools#

Required by intend init#

  • go
  • golangci-lint
  • trufflehog
  • gitleaks
  • trivy

Required by intend verify#

  • go
  • golangci-lint
  • trufflehog
  • gitleaks
  • trivy

intend verify runs:

go test ./...
golangci-lint run
trufflehog filesystem .
gitleaks dir .
trivy fs .

Required by contribution mode#

  • git for all contribution-mode operations
  • gh for intend new --mode contrib --from-gh ...

Naming#

Bundle names use lowercase kebab-case:

good: add-login
good: fix-issue-123
bad: AddLogin
bad: add_login

Notes#

  • trace expects the bundle to already be locked.
  • delete removes bundle files from the active mode and requires --force for locked bundles.
  • verify traces bundles before running repository checks.
  • Current agent support is Cursor-only.