terraphim / terraphim/terraphim-ai
feat: Implement Knowledge Graph Schema Linter
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 62
- Forks
- 5
- Avg merge
- 2h 27m
- Merged PRs (30d)
- 1
Description
Summary
Implement KG schema linter based on design from closed PR #294.
Design Plan
See .docs/plans/kg-schema-linter-design.md for full design document.
Key Features
- Validate KG markdown files against schema rules
- Report lint issues with severity, code, and message
- JSON output for CI/CD integration
- Skill integration for agentic loop validation
New Crate Structure
crates/terraphim_kg_linter/
├── Cargo.toml
├── src/lib.rs # Core linting logic
├── src/main.rs # CLI binary
└── tests/basic.rs # Integration tests
CLI Usage
cargo run -p terraphim_kg_linter -- --path docs/src/kg --strict
Implementation Timeline
| Phase | Duration | Deliverable |
|---|---|---|
| Crate structure, types | 1 day | Basic structure |
| Linter implementation | 2 days | Core logic, CLI |
| Workspace, skill, CI | 1 day | Integration |
Origin
Extracted from closed PR #294 (85 files, conflicting). Fresh implementation approach.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with .docs/plans/kg-schema-linter-design.md and the proposed crates/terraphim_kg_linter structure. Review src/lib.rs, src/main.rs, and tests/basic.rs, then run the documented cargo command against docs/src/kg. Done means markdown files are validated, issues report severity, code, and message, JSON output works for CI, and skill integration is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ci-cd, cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100