Skip to content

docs: rename docs/ to Docs/ and make it read-only for agents#9

Merged
brendan-ch merged 2 commits into
mainfrom
chore/update-documentation-rules
Jun 15, 2026
Merged

docs: rename docs/ to Docs/ and make it read-only for agents#9
brendan-ch merged 2 commits into
mainfrom
chore/update-documentation-rules

Conversation

@brendan-ch

@brendan-ch brendan-ch commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rename the documentation directory docs/Docs/ to match the project's capitalized top-level layout (OpenAppLock/, Shared/, Config/). Both files (RULES_FEATURE_SPEC.md, SWIFT_GUIDELINES.md) move as tracked renames.
  • Update every path reference in AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and README.md.
  • Add a Documentation rule to AGENTS.md: Docs/ is human-authored reference material — agents read it for context but must never create or modify any file under it. The eventual goal is for all documentation to be human-written; only AGENTS.md and CLAUDE.md are agent-maintained.
  • Reconcile a resulting conflict: the existing TDD guidance told agents to update the feature spec. Reframed so agents consult the spec (the source of truth) and flag needed spec changes to the maintainer rather than editing Docs/.

CONTRIBUTING.md's "update the spec first" instruction is intentionally left intact (path only) — that doc addresses human contributors, for whom authoring the spec is correct.

Test plan

  • git grep "docs/" returns no lowercase path references (verified locally)
  • Markdown links in README.md, CONTRIBUTING.md, CLAUDE.md resolve to Docs/…
  • No code references the old docs/ path (docs-only change; no build/test impact)

🤖 Generated with Claude Code

brendan-ch and others added 2 commits June 14, 2026 22:25
Rename the documentation directory docs/ -> Docs/ to match the project's
capitalized top-level layout (OpenAppLock/, Shared/, Config/), and update
every reference in AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and README.md.

Add a Documentation rule to AGENTS.md: Docs/ is human-authored reference
material that agents read for context but must never create or modify. The
goal is for all documentation to be human-written; only AGENTS.md and
CLAUDE.md are agent-maintained. Reframe the TDD guidance so agents consult
the feature spec rather than editing it, and flag needed spec changes to the
maintainer instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rename Docs/RULES_FEATURE_SPEC.md and Docs/SWIFT_GUIDELINES.md to
AGENT_-prefixed names and switch the documentation policy from
directory-based (everything under Docs/ is read-only) to filename-based:

- AGENT_-prefixed files (plus AGENTS.md, CLAUDE.md) are agent-managed —
  agents may read, create, and edit them and keep them current.
- All other docs (README.md, CONTRIBUTING.md, future human-authored docs)
  remain read-only to agents.

The prefix is the contract, so newly added human docs are off-limits by
default. Updates all cross-references in AGENTS.md, CLAUDE.md,
CONTRIBUTING.md, README.md, and the spec link inside the guidelines file.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@brendan-ch brendan-ch merged commit 8ae5e9e into main Jun 15, 2026
1 check passed
@brendan-ch brendan-ch deleted the chore/update-documentation-rules branch June 15, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant