Course contents

How to submit a preset: files, frontmatter, sign-off and CI

intermediate4 min readUpdated
  • Cursor
  • GitHub Copilot
  • Claude Code
  • Windsurf / Devin
  • Cline
  • Codex
  • Antigravity CLI
On this page

What you can submit

presets.dev content lives in the public GitHub repo beel-collab/presets.dev. You can contribute:

TypeWhat it isExample
ruleA rule file for one toolA Cursor .mdc rule for Astro
instructionA Copilot .instructions.md file or a Claude CLAUDE.mdCopilot instructions for Hono
skillA SKILL.md folder for one toolA Claude Code skill that writes Vitest tests

One half is fine. Submit a rule, an instructions file, or a skill for one tool and set its type in the frontmatter. After the pull request merges, the CLI can install that preset by its id. The website lists it after deploying the updated content revision. The 30 official stacks ship as complete pairs for all seven tools.

The originality rule

Every preset must be your own writing. This is the most important rule in the project.

  • Close other preset repos, rule collections and docs before you draft.
  • Use your own structure, wording and examples.
  • A paraphrase of someone else's preset still counts as a copy, even if their license is MIT, CC BY or CC0.
  • You can check official framework docs for a fact, then describe the practice in your own words with an example you ran.

CI also runs a similarity check that fails on long runs of shared text.

Where files go

TypePath
Rule<tool>/<topic>/<name>.md, or <name>.mdc for a scoped Cursor rule
Instructioncopilot/<topic>/<name>.instructions.md, or claude/instructions/<topic>/CLAUDE.md
Skill<tool>/<topic>/<skill-name>/SKILL.md
Claude Code skillclaude/skills/<topic>/<skill-name>/SKILL.md

Tool folders are cursor, copilot, claude, windsurf, cline, codex and antigravity. File names are lowercase with hyphens; SKILL.md, AGENTS.md and CLAUDE.md keep their usual capitals. Supporting files for a skill go in references/, scripts/ or assets/ next to SKILL.md.

Improving an official stack

The 30 official stacks are generated. Their per-tool files are built from masters/<stack>/ (standards.md, skill.md and stack.json) by scripts/assemble_release.py, and CI fails if a generated file drifts from its master. To fix or improve an official stack, edit the files in masters/<stack>/ and run the assembler, rather than editing cursor/nextjs/... directly. The contributing guide walks through it.

Step by step

1. Fork and branch

git clone https://github.com/<you>/presets.dev
cd presets.dev
git checkout -b add-astro-cursor-rule

2. Copy a starter

Starters live in templates/: rule.md, instruction.md, agent.md and skill/SKILL.md.

mkdir -p cursor/astro
cp templates/rule.md cursor/astro/astro-rules.mdc

3. Fill in the frontmatter

The catalog frontmatter describes your preset for presets.dev. It's checked against schema/preset.frontmatter.schema.json.

cursor/astro/astro-rules.mdc
---
id: astro-cursor-rules
slug: cursor/astro/astro-rules
title: Astro rules for Cursor
description: Content collections, islands and server endpoints for Astro projects. Keeps client JavaScript to the components that need it.
type: rule
tools:
  - cursor
tags:
  - astro
  - typescript
author:
  name: Your Name
  github: your-github-username
license: MIT
origin: original
version: 1.0.0
tested_with:
  - "client: Cursor; version: 2.1.0; date: 2026-11-18; result: pass"
created: 2026-11-18
updated: 2026-11-18
globs: "src/**/*.astro, astro.config.mjs"
alwaysApply: false
---

Key fields:

FieldRule
idUnique kebab-case, 3 to 80 characters
slugThe file path without .md or .mdc
typerule, instruction or skill; must match the file name (SKILL.md is skill, *.instructions.md is instruction, *.mdc is rule)
toolsMust include the folder the file is in
author.nameA real person or organization; Community is rejected
license / originAlways MIT / original
tested_withA run you actually made, a named fixture, or a note that the client wasn't run

Optional: globs and alwaysApply for Cursor rules, stack, libs, updated_for and also_for.

4. Write the body

Follow Anatomy of a good rule or Write skills that trigger. Keep it under 40,000 characters (CI checks this).

5. Generate and check the install files

pip install -r requirements-ci.txt
npm ci --prefix website
python scripts/assemble_release.py
python scripts/lint_presets.py
python scripts/assemble_release.py --check

Include the files under release/<id>/native/, the install index at release/original-2026-11/stacks.json, and release/README.md in the same pull request. The generated native file contains the frontmatter your tool uses. Its catalog file supplies the title, author, and other metadata for the website.

CI also checks id uniqueness, Markdown lint (no trailing spaces, no tabs, one trailing newline, Unix line endings), secrets, and similarity to existing content.

6. Commit with a sign-off

Every commit needs a Developer Certificate of Origin sign-off that matches the commit author:

git add cursor/astro/astro-rules.mdc release/astro-cursor-rules release/original-2026-11/stacks.json release/README.md
git commit -s -m "Add Astro rules for Cursor"

-s adds a Signed-off-by: Your Name <you@example.com> line from your Git config. Forgot it on your last commit? git commit --amend -s --no-edit, then push to your own PR branch with git push --force-with-lease.

7. Open the pull request

The PR template asks you to confirm:

  • The preset is your original work.
  • Frontmatter matches the schema, with license: MIT and origin: original.
  • slug matches the path and id is unused.
  • Commits are signed off.
  • You tried it in the tool under tested_with.
  • You included the generated install files and updated release index.

Tick a box only when it's true. A maintainer from @beel-collab reviews every PR.

After the example contribution merges, its install command would be:

npx presets-dev add astro-cursor-rules --tool cursor

What reviewers look for

  • Original, specific content. Facts, decisions and boundaries, not generic advice.
  • A real test. A tested_with entry you can stand behind.
  • Correct native format. The frontmatter fields the tool actually reads (globs for Cursor, applyTo for Copilot, paths for Claude Code and Cline, trigger for Devin).
  • A focused scope. One stack, one job.

Common mistakes

  • Missing sign-off. CI rejects the PR. Use git commit -s.
  • slug that doesn't match the path. Remove only the final .md or .mdc.
  • Editing generated files for an official stack. Edit masters/<stack>/ instead.
  • Copying catalog fields into the native file. tools and author are for the catalog; the installed file only needs the tool's own frontmatter.

Recap

  • Submit a rule, an instructions file or a skill; one half is fine.
  • Write it yourself; paraphrases count as copies.
  • Use the starter, fill the schema fields, and test it in the tool.
  • Sign off every commit with git commit -s and open a PR.

Next step

You've finished the course. Install a stack and try what you've learned: Browse presets, or read the blog.