feat: add project docs (DOC#) for non-repo knowledge#8
Merged
Conversation
Add a DOC#<slug> record type under PROJECT# for storing non-repo knowledge like credentials inventory, infra references, and business context. Agents access docs via `./ctx docs [slug]`. - Python: CRUD helpers in projects_dynamo.py with slug validation - CLI: `./ctx docs` (list) and `./ctx docs <slug>` (get) in context_cli.py - API: GET/PUT/DELETE /projects/:id/docs/:slug in Hono Lambda - UI: Docs tab on ProjectDetail with create, edit, delete, markdown preview - Schema: DOC# record type documented in dynamo-schema.md Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DOC#<slug>DynamoDB record type underPROJECT#<id>for storing non-repo knowledge (credentials inventory, infra references, business context) that agents need but shouldn't live in the target repo./ctx docsCLI, Hono Lambda API routes, and a Docs tab on ProjectDetail in the frontend UI^[a-z0-9][a-z0-9_-]{0,62}$on both server and client; content capped at 50KB per docChanges
Python (
src/projects_dynamo.py)list_docs,get_doc,put_doc,delete_docwith slug validationCLI (
src/context_cli.py)./ctx docs— list all docs with slug, title, preview./ctx docs <slug>— print full doc contentHono API (
infra/packages/api/)GET /projects/:id/docs— list allGET /projects/:id/docs/:slug— get onePUT /projects/:id/docs/:slug— create or update (idempotent)DELETE /projects/:id/docs/:slug— removeFrontend (
frontend/src/pages/ProjectDetail.tsx)Docs
docs/dynamo-schema.md— DOC# record typeTest plan
aws-setup, verify it appears in the list./ctx docsand./ctx docs aws-setupwork from an agent temp dirdeleteProjectqueries all items under the pk)Made with Cursor