terraphim / terraphim/terraphim-ai

feat: Implement Knowledge Graph Schema Linter

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Validate KG markdown files against schema rules
  2. Report lint issues with severity, code, and message
  3. JSON output for CI/CD integration
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.