Skip to content
Back to skills

skillcraft

ASecurity

**ESLint + Jest for agent-config files.** `skillcraft` lints, syncs and scaffolds the fragmented ecosystem of `SKILL.md`, `CLAUDE.md`, `AGENTS.md`, `.cursor/rules`, `.claude/rules` and copilot-instructions. One canonical source, many managed targets, drift detection in CI.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 28, 2026
ai-agentsbashgitapi

Works with

  • cursor
  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 28, 2026

npx -y skills add dimanovikov/skillcraft --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of skillcraft?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for skillcraft
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dimanovikov-skillcraft/badge)](https://www.skillsdirectory.com/skills/dimanovikov-skillcraft)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
<!-- skillcraft:managed-source path=AGENTS.md -->

---
name: skillcraft
description: Lint, sync and scaffold agent-config files (SKILL.md, CLAUDE.md, AGENTS.md).
  Use when checking, validating or regenerating agent-config files in a repository.
---

# skillcraft

**ESLint + Jest for agent-config files.** `skillcraft` lints, syncs and scaffolds the fragmented ecosystem of `SKILL.md`, `CLAUDE.md`, `AGENTS.md`, `.cursor/rules`, `.claude/rules` and copilot-instructions. One canonical source, many managed targets, drift detection in CI.

## Install

```bash
uv tool install skillcraft
# or: pip install skillcraft
```

## Commands

| Command | Purpose |
| --- | --- |
| `skillcraft lint [--check] [-f plain\|json\|github\|sarif]` | Run the rule set over discovered config files; exit 1 on any ERROR. |
| `skillcraft sync [--check] [--diff] [--adopt <file>]` | Regenerate managed targets from `AGENTS.md`; detect drift. |
| `skillcraft init [--name <name>]` | Scaffold a minimal `AGENTS.md` + `.skillcraft.toml`. |
| `skillcraft version` | Print the version. |

## How it works

- **Canonical source = `AGENTS.md`** (vendor-neutral, schema-less). Richer metadata (name, description, scope, license, …) rides in invisible `<!-- skillcraft:meta <json> -->` comments — valid markdown to every consumer, machine-readable to `skillcraft`.
- **IR: `ConfigDoc`.** Every parser emits it, every renderer consumes it. Same-format parse→render is lossless; `extra_frontmatter` escape hatch guarantees no field is silently dropped.
- **Sync.** `skillcraft sync` renders each target from the canonical doc and writes it with a `<!-- skillcraft:managed-source path=AGENTS.md -->` marker. `skillcraft sync --check` exits 1 if any managed target drifted (CI). Unmanaged files are never overwritten; opt in with `--adopt`.
- **Plugins.** Subclass `Rule` or `Converter`, decorate with `@register_rule` / `@register_converter`, and (for external packages) declare an entry-point in `skillcraft.rules` / `skillcraft.converters`. See `CONTRIBUTING.md`.

## Rules

| ID | Scope | Rule |
| --- | --- | --- |
| SC101 | SKILL | `name` is kebab-case, ≤64 chars |
| SC102 | SKILL | in a `skills/<name>/` folder, `name` matches the folder |
| SC103 | SKILL | `description` present, ≤1024 chars |
| SC104 | SKILL | body ≈ <5000 tokens (warn past 4000) |
| SC105 | SKILL | `description` ≥40 chars for triggerability (warn) |
| SC201 | CLAUDE | `@path` imports resolve, no cycles, ≤4 hops |
| SC202 | CLAUDE | line count <200 (warn), <500 (error) |
| SC203 | CLAUDE | `@imports` resolve inside the repo root (error) |
| SC204 | ALL | no skipped heading levels (warn) |
| SC301 | ALL | required frontmatter present iff the format requires it |
| SC302 | ALL | no merge-conflict markers in the body |
| SC304 | ALL | body ends with a trailing newline (warn) |
| SC401 | CURSOR | globs well-formed and the rule is reachable (error/warn) |
| SC402 | CURSOR | not both `alwaysApply: true` and `globs` (warn) |

## Build & test

```bash
uv sync
uv run ruff check
uv run pytest
uv run skillcraft lint          # dogfood: lint skillcraft's own configs
uv run skillcraft sync --check  # dogfood: no drift between AGENTS.md and targets
```

## Layout

```
src/skillcraft/   cli, ir, markers, tokens, config, discover
                  lint/{runner,report}  sync/engine  scaffold/init
                  plugins/{api,registry,builtin/{rules,converters}}
tests/            unit (ir, markers, rules, converters, sync, registry, config, discover) + cli e2e
```

## License

MIT.

Files in this skill

  • .pre-commit-config.yaml763 B
  • .python-version5 B
  • .skillcraft.toml212 B
  • AGENTS.md3.4 KB
  • ARCHITECTURE.md6.6 KB
  • CLAUDE.md3.3 KB
  • CODEOWNERS432 B
  • CODE_OF_CONDUCT.md5.3 KB
  • CONTRIBUTING.md4.4 KB
  • SKILL.md3.5 KB
  • pyproject.toml1 KB
  • tests/conftest.py768 B
  • tests/helpers.py1.5 KB
  • uv.lock67.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.