Skip to content
Back to skills

Gradus Author

ASecurity

Author or refine Gradus rules with valid frontmatter, level charter checks, rejected rationalizations, and examples without modifying locked levels directly.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentsrailsgitbackend

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add Milosauro/gradus-ai --skill gradus-author --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gradus Author?

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

Security grade badge for Gradus Author
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/milosauro-gradus-author/badge)](https://www.skillsdirectory.com/skills/milosauro-gradus-author)

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

Download with Pro
SKILL.md
---
name: gradus-author
description: "Author or refine Gradus rules with valid frontmatter, level charter checks, rejected rationalizations, and examples without modifying locked levels directly."
---

# Gradus Author Skill

## Inputs
- User intent, design documents, or promoted lessons from `gradusctl lessons list --json`.
- Target level charters (`level.yaml`) and `gradusctl resolve --json` output.

## Workflow
1. Inspect `gradus.yaml` and the target level's `level.yaml` charter (`charter.includes`, `charter.excludes`, `charter.examples_in`, `charter.examples_out`, `charter.allowed_severities`) to verify the rule belongs at that level and uses an allowed severity.
2. If the rule matches `charter.excludes` or `charter.examples_out` (or belongs to another level), redirect it to the appropriate level and explain why.
3. If the target level has `locked: true`, draft a pull-request proposal for the upstream level repository instead of editing local locked caches.
4. Author the Markdown rule with valid `gradus/v1` frontmatter (`id`, `title`, `severity`, `enforcement`, `scope`, `status: active`), clear statement, `## Why`, `## Rationalizations`, and `## Examples` (`### Compliant` / `### Non-compliant`).
5. Validate the pyramid with `gradusctl resolve --json` and `gradusctl conflicts --candidates --json`.

## Schema Templates

**`level.yaml` (`charter` must be an object, not a string):**
```yaml
schema: gradus/v1
id: project
version: "0.1.0"
charter:
  purpose: Project-specific engineering rules.
  allowed_severities: [MUST, SHOULD, MAY]
```

**`enforcement: check` (deterministic pattern or external checker):**
```yaml
---
id: PRJ-BE-001
title: Forbid debug print statements in backend code
severity: MUST
enforcement: check
scope: ["backend/**/*.py"]
checker:
  name: pattern
  pattern: '\bprint\('
status: active
---
```

**`enforcement: hook` (runtime `PreToolUse` guard):**
```yaml
---
id: PRJ-GIT-001
title: Confirm before running git commit or git push
severity: MUST
enforcement: hook
scope: ["**/*"]
guard:
  action: command
  pattern: '\bgit\b(?:\s+(?:-[Cc]\s+\S+|-\S+))*\s+(commit|push)(?:\s|$)'
  decision: ask
status: active
---
```

## Outputs
- Validated Markdown rule file (or upstream PR proposal for `locked: true` levels).

## Guardrails & Prohibitions
- **NEVER** write directly to a `locked: true` level or modify `.gradus/cache/`.
- **NEVER** self-approve rules or bypass `gradusctl resolve` constraint checks.
- **NEVER** include a `level:` field in rule frontmatter (level is derived strictly from the container directory per ADR 0004).

## Rejected Rationalizations
- "I'll just patch the cached file in `.gradus/cache/` to test it quickly." -> Locked levels are verified by `gradus.lock`; propose changes upstream cleanly.

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.