Repository navigation
Description
Context
Charter v0.4.2 was installed into stackbilt_llc, a pure planning/docs workspace (markdown files, no application code). This is the first non-code workspace adoption and surfaces a preset gap.
Problem
-
No
docspreset:detectStack()returnsconfidence: LOW, suggestedPreset: fullstackfor repos with no framework dependencies. The valid preset enum isworker | frontend | backend | fullstack— there is no docs/planning option. -
adf initscaffolds irrelevant modules: Always createsfrontend.adf(triggers: React, CSS, UI) andbackend.adf(triggers: API, Node, DB) regardless of repo type. A planning workspace needsdecisions.adfandplanning.adfinstead. -
LOW confidence gives no guidance: When nothing is detected, no explanation of why or suggestion that this might be a docs-only workspace.
-
charter driftis a silent noop: Drift scanner checks**/*.ts,jsfiles. Docs repo has none. No "nothing to scan" notice.
Proposed Solution
Add docs to StackPreset union
Detection signals:
- Majority
.mdfiles in repo root anddocs/ - Presence of
docs/,ADR/, orpapers/directories - Absence of any framework dependency in
package.json(or nopackage.json) package.jsondescription containing planning/docs/governance keywords
Preset-conditional ADF scaffold
For docs preset, adf init would create:
decisions.adf(Triggers: ADR, decision, tradeoff, architecture) instead offrontend.adfplanning.adf(Triggers: sprint, milestone, roadmap, OKR, timeline) instead ofbackend.adf
Docs-specific blessed-stack patterns
Replace code-oriented patterns with:
- Decision record structure
- Document versioning/dating conventions
- Cross-reference integrity
Better LOW confidence messaging
When confidence === 'LOW' and no frameworks detected:
Warning: No code stack detected. This may be a docs-only or planning workspace.
Consider: charter setup --preset docs
Files Affected
packages/types/src/index.ts— adddocstoStackPresetpackages/cli/src/commands/setup.ts— detection signals, fallback warningpackages/cli/src/commands/init.ts—PATTERN_TEMPLATES['docs'],isValidPresetpackages/cli/src/commands/adf.ts— preset-conditional scaffold inadfInitREADME.md+packages/cli/README.md— update preset listCHANGELOG.md
Evidence
Full AAR from the onboarding: stackbilt_llc/docs/aar-charter-onboarding.md
{
"detected": {
"runtime": [],
"frameworks": [],
"confidence": "LOW",
"suggestedPreset": "fullstack",
"signals": {
"hasFrontend": false,
"hasBackend": false,
"hasWorker": false,
"hasCloudflare": false
}
}
}Charter v0.4.2, Node v22.17.0, WSL2/Ubuntu.
Activity
docs(release): link issues #3-#7 to v0.6.0 plan and milestone
docs(release): add phased sequencing and version bump gate to v0.6.0 …
feat(setup): add docs/planning preset for non-code workspaces
docs(changelog): capture all Phase 1-3 work in Unreleased section