Imported from daena-archive/daena (
AGENTS.md). Install upstream withnpx skills add daena-archive/daena. Copyright stays with the author.
Daena Archive contributor guidance
Working agreement
- Inspect existing guidance and the current worktree before changing code. Preserve unrelated user-authored changes.
- Plan the intended vertical slice before editing; keep changes scoped to the requested phase.
- Do not stage, commit, or push unless the user explicitly asks.
- Use
rtkto run shell commands. For example:rtk git status,rtk cargo test, andrtk npm run build. - This repository uses a root Cargo workspace (
Cargo.toml); Rust checks normally usecargo test --workspace --locked --offline(orcargo test -p <crate> --locked --offlinefor focused checks) when dependencies are cached. - This is a Tauri desktop project. Browser automation cannot interact with the native app; validate desktop behavior through appropriate Tauri-native or rendered checks instead.
Architecture authorities
docs/ARCHITECTURE.mddefines the product and current architecture.docs/plans/PLUGIN_PLATFORM_PLAN.mddefines plugin-platform acceptance criteria.docs/storage/STORAGE.mddefines canonical project-storage behavior..daena/index.sqliteand.daena/assets/are the live runtime authority. Portable project files are deterministic checkpoints and must be sufficient to rebuild runtime state when the checkpoint is clean and validated; seedocs/storage/STORAGE.md.
Code discovery
This project uses codebase-memory-mcp to maintain a knowledge graph of the codebase.
Always prefer MCP graph tools over grep, glob, or file search for code discovery:
search_graph— find functions, classes, routes, and variables by pattern.trace_path— trace callers and callees.get_code_snippet— read a specific function or class.query_graph— run Cypher queries for complex patterns.get_architecture— obtain a high-level project summary.
Run index_repository first if the project is not indexed. Fall back to rg only for string literals, error messages, configuration values, non-code files, or when graph results are insufficient.
Verification
- Validate changes in proportion to their risk with focused tests plus the relevant build/type checks.
- For storage work, verify canonical round trips and recovery after deleting
.daena/; account for external edits and malformed paths where applicable. - Passing unit tests alone do not prove rendered UI behavior, plugin-webview lifecycle, or persistence/recovery behavior. Exercise the relevant boundary directly.