Workflow
Recommended Knowns workflows for day-to-day project work.
Workflow
This is the recommended human + AI workflow with Knowns.
The goal is to keep planning, context, implementation notes, and validation visible outside a single chat session. A person can drive the workflow from the CLI or Web UI; an AI assistant can use the same context through MCP tools and skills.
Suggested loop for any project
- run
knowns initonce per project - create tasks and supporting docs
- let AI start with MCP
initial, then usehelp, tasks, docs, and memory as needed - implement changes
- validate
- sync or update generated artifacts when needed
This loop works even without an AI assistant. The AI integration simply makes the same project state available to the assistant.
Typical command loop
knowns task create "..."
knowns doc create "..."
knowns search "..." --plain
knowns retrieve "..." --json
knowns validate --plain
knowns sync
Human-driven workflow
Use this when you want Knowns as a project organization layer:
- Create a task with acceptance criteria.
- Add docs for architecture, decisions, or onboarding context.
- Search before starting work so you know what context already exists.
- Update task notes as work progresses.
- Run validation before marking the task done.
AI-assisted workflow
Use this when an assistant is helping with planning or implementation:
- Run
knowns setup <target> --globalfor the assistant platform. - Ask the assistant to inspect project state first.
- Have the assistant work from a task, doc, or spec instead of from a vague prompt.
- Use MCP tools for structured reads/writes when available.
- Use skills for agent-side workflows such as spec, implementation, review, verification, or flow orchestration.
--global is recommended for personal assistant setup because it updates user-level MCP config, skills, and runtime hooks. Use non-global setup only when you intentionally want repo-local integration files. Skill command prefixes depend on the assistant surface. Claude uses /kn-*; Codex uses $kn-*.
Why this works well
- tasks define execution targets
- docs explain structure and intent
- memory preserves decisions and conventions
- retrieval connects everything for humans and AI
When to use which surface
- CLI: quick authoring, scripting, CI-friendly validation, and direct project maintenance
- MCP: structured AI integration for tasks, docs, memory, search, templates, code navigation, and validation
- Web UI: board, docs, graph, config, and chat workflows
- Skills: assistant-side workflow commands, for example spec creation, review, or
kn-floworchestration
Finishing work
Before calling work complete:
knowns validate --plain
knowns sync
Validation checks project integrity. Sync keeps generated shim files and platform artifacts aligned with the current Knowns config.
Workflow
Cách làm việc đề xuất khi kết hợp người và AI với Knowns.
Mục tiêu là giữ planning, context, implementation notes, và validation ở ngoài một chat session đơn lẻ. Người có thể điều khiển workflow từ CLI hoặc Web UI; AI assistant có thể dùng cùng context đó qua MCP tools và skills.
Vòng lặp đề xuất cho mọi project
knowns initmột lần cho mỗi project- Tạo task và doc hỗ trợ
- AI bắt đầu bằng MCP
initial, rồi dùnghelp, task, doc, memory khi cần - Implement
- Validate
- Sync khi cần
Vòng lặp này vẫn hữu ích kể cả khi không dùng AI assistant. AI integration chỉ làm cho cùng project state đó khả dụng với assistant.
Lệnh hay đi cùng nhau
knowns task create "..."
knowns doc create "..."
knowns search "..." --plain
knowns retrieve "..." --json
knowns validate --plain
knowns sync
Workflow do người điều khiển
Dùng cách này khi muốn Knowns làm project organization layer:
- Tạo task với acceptance criteria.
- Thêm doc cho architecture, decision, hoặc onboarding context.
- Search trước khi bắt đầu để biết context nào đã có.
- Update task notes trong lúc work tiến triển.
- Chạy validation trước khi đánh dấu task done.
Workflow có AI hỗ trợ
Dùng cách này khi assistant hỗ trợ planning hoặc implementation:
- Chạy
knowns setup <target> --globalcho assistant platform. - Yêu cầu assistant inspect project state trước.
- Cho assistant làm việc từ task, doc, hoặc spec thay vì prompt mơ hồ.
- Dùng MCP tools cho structured reads/writes khi có.
- Dùng skill cho agent-side workflow như spec, implementation, review, verification, hoặc flow orchestration.
Dùng --global cho personal assistant setup vì nó update user-level MCP config, skills, và runtime hooks. Chỉ dùng setup không có --global khi bạn chủ ý muốn repo-local integration files. Skill command prefix phụ thuộc assistant surface. Claude dùng /kn-*; Codex dùng $kn-*.
Tại sao cách này hiệu quả?
- Task define mục tiêu
- Doc giải thích cấu trúc và intent
- Memory giữ lại decision và convention
- Retrieval nối tất cả lại cho cả người và AI
Khi nào dùng gì
- CLI: thao tác nhanh, scripting, CI-friendly validation, và project maintenance trực tiếp
- MCP: structured AI integration cho task, doc, memory, search, template, code navigation, và validation
- Web UI: board, doc, graph, config, và chat workflows
- Skill: assistant-side workflow commands, ví dụ tạo spec, review, hoặc orchestration bằng
kn-flow
Kết thúc work
Trước khi xem work là xong:
knowns validate --plain
knowns sync
Validation kiểm tra project integrity. Sync giữ generated shim files và platform artifacts khớp với Knowns config hiện tại.