Project Principles
Skill36 starsChanged 2 months agoApache-2.0View on GitHub
Core architectural and code quality principles that guide all development decisions in the edda project
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- arch-specSkill
- code-qualitySkill
- code-reviewSkill
- commitSkill
- coord-delegateSkill
- coord-handoffSkill
- coord-orchestrateSkill
- coord-requestSkill
- coord-reviewSkill
- coord-runSkill
- coord-syncSkill
- dispatchSkill
- edda-releaseSkill
- fleet-epic-splitSkill
- fleet-managerSkill
- fleet-orchestrateSkill
- fleet-pr-loopSkill
- fleet-reviewSkill
- fleet-triadSkill
- fleet-workerSkill
- ground-checkSkill
- health-checkSkill
- intel-scanSkill
- issue-actionSkill
- issue-compactSkill
- issue-createSkill
- issue-intakeSkill
- issue-pipelineSkill
- issue-planSkill
- issue-scanSkill
- parallel-waveSkill
- path-forwardSkill
- plan-decomposeSkill
- plan-validateSkill
- pr-checkSkill
- project-planSkill
- pr-review-loopSkill
- pr-reviewSkill
- pull-requestSkill
- regression-guardSkill
- skill-aliasSkill
- skill-craftSkill
- skill-testSkill
- spec-review-modesSkill
- tech-debtSkill
- testingSkill
- tracking-issueSkill
- verifiable-goal-loopSkill
- fleet-orchestrateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 14 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Start with the simplest solution that works
- Distinctive: line 19
Delete unused code aggressively
- Distinctive: line 22
When coding: Ask "Do we need this NOW?" If not, don't add it.
- Distinctive: line 31
Only handle errors when you can meaningfully recover
- Very specific: line 33
Avoid .unwrap() in library code - use ?
- Distinctive: line 36
When coding: Only add explicit error handling when you have specific recovery logic.
- Very specific: line 45
Use newtypes for domain concepts (SessionId(Uuid) not raw Uuid)
- Very specific: line 47
Use thiserror for library errors, anyhow for application errors
- Distinctive: line 50
When coding: If a domain concept uses a primitive type, wrap it in a newtype.
- Very specific: line 59
Never add #[allow(...)] to suppress warnings
- Very specific: line 60
Never add #[allow(clippy::...)] to bypass clippy lints
- Very specific: line 62
Run cargo clippy -- -D warnings before committing
- Distinctive: line 64
When coding: If clippy complains, fix the code, not the linter.
- Distinctive: line 70
Before writing any code, verify:
- Very specific: line 78
Starting a new feature?: Read yagni.md first
- Very specific: line 79
Handling errors?: Read no-defensive.md
- Very specific: line 80
Defining types?: Read type-safety.md
- Very specific: line 81
Getting clippy warnings?: Read zero-lint.md
- Distinctive: line 87
While writing code: - Follow type safety and proper error handling
- Very specific: line 88
Before committing: - Ensure zero warnings with cargo clippy -- -D warnings
- Distinctive: line 89
During code review: - Verify adherence to all principles
- Distinctive: line 94
Keep the codebase simple and maintainable
- Distinctive: line 96
Ensure high code quality
- Distinctive: line 103
If principles seem to conflict:
- Distinctive: line 106
When in doubt, choose the simpler solution
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Principles Skill
This skill defines the fundamental design principles and coding standards for the edda project. These principles are MANDATORY for all code written in this project and should guide every development decision.
The Four Core Principles
1. YAGNI (You Aren't Gonna Need It) - CORE PRINCIPLE
Don't add functionality until it's actually needed.
Quick rules:
- Start with the simplest solution that works
- Avoid premature abstractions
- Delete unused code aggressively
- No "just in case" features
When coding: Ask "Do we need this NOW?" If not, don't add it.
For detailed guidelines and examples, read
yagni.md
2. Proper Error Handling (Not Defensive Programming)
Use Result/Option and ? propagation. Don't panic or swallow errors.
Quick rules:
- Only handle errors when you can meaningfully recover
- Let errors propagate with
?to where they can be properly addressed - Avoid
.unwrap()in library code - use?or.expect("reason") - Trust the type system and Rust's ownership model
When coding: Only add explicit error handling when you have specific recovery logic.
For detailed guidelines and examples, read
no-defensive.md
3. Leverage Rust's Type System
Use the type system to enforce correctness at compile time.
Quick rules:
- Use newtypes for domain concepts (
SessionId(Uuid)not rawUuid) - Make invalid states unrepresentable with enums
- Use
thiserrorfor library errors,anyhowfor application errors - Define structs and enums for all data structures
When coding: If a domain concept uses a primitive type, wrap it in a newtype.
For detailed guidelines and examples, read
type-safety.md
4. Zero Tolerance for Warnings
All code must compile without warnings. Clippy warnings are errors.
Quick rules:
- Never add
#[allow(...)]to suppress warnings - Never add
#[allow(clippy::...)]to bypass clippy lints - Fix the underlying issue, don't suppress the warning
- Run
cargo clippy -- -D warningsbefore committing
When coding: If clippy complains, fix the code, not the linter.
For detailed guidelines and examples, read
zero-lint.md
Quick Reference: Code Quality Checklist
Before writing any code, verify:
- Is this feature needed NOW? (YAGNI)
- Am I propagating errors properly with
?? (Error Handling) - Are domain concepts wrapped in newtypes? (Type Safety)
- Will this pass
cargo clippy -- -D warnings? (Zero Warnings)
When to Load Additional Context
- Starting a new feature? Read
yagni.mdfirst - Handling errors? Read
no-defensive.md - Defining types? Read
type-safety.md - Getting clippy warnings? Read
zero-lint.md
Integration with Workflow
These principles should be applied:
- Before writing code - Plan with YAGNI in mind
- While writing code - Follow type safety and proper error handling
- Before committing - Ensure zero warnings with
cargo clippy -- -D warnings - During code review - Verify adherence to all principles
Philosophy
These principles exist to:
- Keep the codebase simple and maintainable
- Prevent technical debt accumulation
- Ensure high code quality
- Make the project easy to understand and modify
They may feel restrictive at first, but they lead to cleaner, more maintainable code.
Conflict Resolution
If principles seem to conflict:
- YAGNI takes precedence - simplicity wins
- Type safety is non-negotiable
- When in doubt, choose the simpler solution
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

