### Configuration File Example Source: https://github.com/navfa/skills-md-graph/blob/master/README.md An example TOML configuration file for skill-graph, demonstrating schema customization and scan settings. ```toml [schema] # Only "name" is required by default. Add more if you want stricter validation. required_fields = ["name"] optional_fields = ["description", "dependencies", "inputs", "outputs"] # Define shortcuts for frontmatter fields. # With this config, you can write "deps:" instead of "dependencies:" in your files. [schema.aliases] deps = "dependencies" desc = "description" [scan] # Number of parallel workers for async scan (default: number of CPUs) workers = 8 # File extensions to scan (default: ["md"]) extensions = ["md"] ``` -------------------------------- ### Install skill-graph CLI Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Installs the skill-graph binary globally using Cargo. Ensure ~/.cargo/bin is in your PATH. ```sh cargo install skills-md-graph ``` -------------------------------- ### Minimal Skill File Example Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Demonstrates the minimum required structure for a skill file, which only needs a 'name' field in the frontmatter. ```markdown --- name: my-skill --- Your content here. ``` -------------------------------- ### Example Skill Markdown File Source: https://github.com/navfa/skills-md-graph/blob/master/README.md A basic example of a skill defined in a Markdown file with YAML frontmatter, including name, description, and dependencies. ```markdown --- name: error-handling description: Master Rust error handling patterns dependencies: - rust-basics --- ## Description This skill covers Result, Option, and the ? operator. ``` -------------------------------- ### Development Make Commands Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Common make commands for development tasks including formatting, linting, testing, benchmarking, and installation. ```sh make check # fmt + clippy + test in one shot make test # run all tests make bench # run the 10k file benchmark make lint # cargo clippy make install # install skill-graph to ~/.cargo/bin ``` -------------------------------- ### Build and Benchmark Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Commands to build the project and run benchmarks to measure performance. ```sh make bench ``` -------------------------------- ### Build skill-graph from Source Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Clones the skill-graph repository and builds the project from source using Make. ```sh git clone https://github.com/navfa/skills-md-graph.git cd skills-md-graph make build ``` -------------------------------- ### Minimal Skill File with Name Only Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Illustrates the most basic valid skill file, requiring only the 'name' field in its YAML frontmatter. ```markdown --- name: my-skill --- Content goes here. ``` -------------------------------- ### Generate Dependency Graph Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Builds and displays a dependency graph from skill files in the specified directory. ```sh skill-graph graph ./skills ``` -------------------------------- ### Scan Directory for Skills Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Scans a specified directory for Markdown skill files and lists them. ```sh skill-graph scan ./ ``` -------------------------------- ### Scan Directory with JSON Output Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Scans a directory for skill files and outputs the results in JSON format. ```sh skill-graph scan ./skills --json ``` -------------------------------- ### Query Skills: Path Between Two Skills Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Queries the skill graph to find the shortest dependency path between two specified skills. ```sh skill-graph query ./skills --path-between error-handling rust-basics ``` -------------------------------- ### Query Skills: Transitive Dependencies Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Queries the skill graph to find all transitive dependencies of a specified skill. ```sh skill-graph query ./skills --deps error-handling ``` -------------------------------- ### Lint Skill Files for Issues Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Checks skill files in a directory for common issues like cycles or missing dependencies. Returns a non-zero exit code if errors are found, suitable for CI. ```sh skill-graph lint ./skills ``` -------------------------------- ### Generate PNG Graph with Stats Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Generates a dependency graph in PNG format and includes statistical information. ```sh skill-graph graph ./skills --png graph.png --stats ``` -------------------------------- ### Async Scan with Progress and Workers Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Performs an asynchronous scan of skill files, displaying a progress bar and utilizing multiple worker threads for performance. ```sh skill-graph scan ./skills --progress --workers 8 ``` -------------------------------- ### CLI Commands with Path Argument Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Execute CLI commands against external projects by specifying the path. Arguments can be passed using the ARGS variable. ```sh make scan path=some-path make graph path=some-path ARGS="--png graph.png --stats" make lint-skills path=some-path make query path=some-path ARGS="--uses rust-basics" make export path=some-path ARGS="--format rdf" ``` -------------------------------- ### Export Skills to RDF Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Exports the skill graph data in RDF format. ```sh skill-graph export ./skills --format rdf ``` -------------------------------- ### Add Cargo bin to Fish Shell PATH Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Configures the Fish shell to include the Cargo bin directory in its PATH environment variable. ```sh fish_add_path ~/".cargo/bin" ``` -------------------------------- ### Export Skills to Cypher for Neo4j Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Exports the skill graph data in Cypher format, suitable for importing into Neo4j. ```sh skill-graph export ./skills --format cypher ``` -------------------------------- ### Add Cargo bin to Bash/Zsh PATH Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Configures Bash or Zsh shells to include the Cargo bin directory in the PATH environment variable by exporting it. ```sh export PATH="$HOME/.cargo/bin:$PATH" ``` -------------------------------- ### Query Skills: Who Depends on a Skill Source: https://github.com/navfa/skills-md-graph/blob/master/README.md Queries the skill graph to find all skills that directly depend on a specified skill. ```sh skill-graph query ./skills --uses rust-basics ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.