agentleFS
citedycitedy/skills/AGENTS.md

skills

AGENTS.md2 starsChanged 6 months agoMITView on GitHub

This file tells AI agents how to maintain and publish this package. Add commands/<command-name>.md: bash node .claude/skills/<skill-name>/scripts/run.js "$1" \ Edit bin/cli.js — add entry to CATALOG: Add the new skill to the table in README.md. In package.json, bump the version: - New skill → minor bump (1.0.0 → 1.1.0) - Fix/improvement → patch bump (1.0.0 → 1.0.1) Every change follows this exact sequence: All scripts/run.js files MUST: After publishing, sync updated skills back to saas-blog:

  • Reads credentials
  • Commits and pushes

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add the new skill to the table in README.md.

    line 85
  2. Very specific:

    After publishing, sync updated skills back to saas-blog:

    line 143

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Instructions — Citedy Skills

This file tells AI agents how to maintain and publish this package.

Repository

Directory Structure

citedy-skills/
├── package.json          # npm package config (bump version here)
├── bin/cli.js            # CLI installer (npx @citedy/skills install)
├── skills/               # All skills live here
│   ├── <skill-name>/
│   │   ├── SKILL.md      # Claude Code skill definition
│   │   ├── scripts/run.js # Executable extractor script
│   │   ├── references/    # Docs for the skill
│   │   └── agents/        # OpenAI/Codex agent configs
├── commands/              # Slash command templates
│   └── <command-name>.md
├── AGENTS.md              # This file
├── README.md              # Public documentation
├── LICENSE                # MIT
└── .env.example

Adding a New Skill

Skill Types

  1. Extraction skills — have scripts/run.js, require API keys (e.g., AnyCrawl)
  2. Knowledge skills — SKILL.md + references only, no scripts, no API keys (e.g., schema-markup, icon-design)
  3. Agent Team skills — require Claude Code Agent Teams API (TeamCreate, TaskCreate, SendMessage)

1. Create skill directory

skills/<skill-name>/
├── SKILL.md              # Required — Claude Code reads this
├── scripts/run.js        # Optional — executable Node.js script (extraction skills)
├── references/           # Optional — docs, notes, checklists
└── agents/openai.yaml    # Optional — Codex/OpenAI config

2. Create slash command

Add commands/<command-name>.md:

---
description: Short description of what the command does
---
Treat `$1` as a required URL/input.
If `$1` is missing, ask the user and stop.

Run:
\```bash
node .claude/skills/<skill-name>/scripts/run.js "$1"
\```

Then read the JSON summary and present key fields to the user.

3. Register in CLI catalog

Edit bin/cli.js — add entry to CATALOG:

const CATALOG = {
  // ... existing entries
  newskill: {
    skill: "skill-directory-name",
    command: "command-name.md",
    description: "One-line description",
  },
};

4. Update README.md

Add the new skill to the table in README.md.

5. Bump version

In package.json, bump the version:

  • New skill → minor bump (1.0.0 → 1.1.0)
  • Fix/improvement → patch bump (1.0.0 → 1.0.1)

Publishing Workflow

Every change follows this exact sequence:

# 1. Verify everything works
cd /Users/dmitrisergeev/Dev/citedy-skills
node bin/cli.js list

# 2. Commit and push to GitHub
git add -A
git commit -m "feat: add <skill-name> skill"
git push origin main

# 3. Publish to npm
npm publish --access public

First-time npm setup

# Login to npm (one-time)
npm login

# Verify @citedy scope is available
npm whoami

Version bumping shortcut

npm version patch   # 1.0.0 → 1.0.1 (fixes)
npm version minor   # 1.0.0 → 1.1.0 (new skills)
npm version major   # 1.0.0 → 2.0.0 (breaking changes)

Script Requirements

All scripts/run.js files MUST:

  1. Read API keys from environment or .env.local — never hardcode
  2. Use relative paths — path.resolve(__dirname, ...) for sibling references
  3. Write output to /tmp/ — JSON artifact with full extraction
  4. Print compact JSON summary to stdout — for Claude to parse
  5. Print errors to stderr — console.error(), then process.exit(1)
  6. Handle non-JSON API responses — try/catch around JSON.parse
  7. Work with Node.js 18+ — no ESM-only dependencies

Sync to saas-blog

After publishing, sync updated skills back to saas-blog:

# From saas-blog root
for skill in skills/*/; do
  name=$(basename "$skill")
  cp -R /Users/dmitrisergeev/Dev/citedy-skills/skills/$name .claude/skills/$name
  cp -R /Users/dmitrisergeev/Dev/citedy-skills/skills/$name .agents/skills/$name
done

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.