agentleFS
yasserstudioyasserstudio/perfex-crm-skills/AGENTS.md

perfex-crm-skills

AGENTS.md3 starsChanged 8 months agoMITView on GitHub

This file tells AI coding agents (Claude Code, Cursor, Codex, etc.) how to work on this repo itself — i.e. when you're adding a new Perfex gotcha, fixing a typo, or shipping a new skill. It's not for agents consuming these skills at runtime; those agents read the individual SKILL.md files under skills/. 1b. Every API name must exist in Perfex core source. Not "in the docs" — in application/. v1.4.0 shipped 14 plausible, undocumented, nonexistent functions/hooks/columns because they were…

  • Commits and pushes

The file

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

11 rules. About 1 is common, 4 are distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Create skills/<new-skill>/SKILL.md with full frontmatter.

    line 56
  2. Very specific:

    Add "./skills/<new-skill>" to the skills array in .claude-plugin/marketplace.json.

    line 57
  3. Very specific:

    Add a row to VERSIONS.md.

    line 58
  4. Distinctive:

    Add a skill entry to the README's skills table.

    line 59
  5. Very specific:

    Add a CHANGELOG entry under [Unreleased] → ### Added.

    line 60
  6. Distinctive:

    Always add a CHANGELOG entry.

    line 68
  7. Distinctive:

    Don't add a skill for a domain this repo doesn't cover (e.g.

    line 83
  8. Distinctive:

    Don't refactor skill layouts or rename skills without flagging it as a MAJOR bump — those changes break anyone pinned to an earlier tag.

    line 84
  9. Very specific:

    Don't add references/ material unless a SKILL.md has genuinely hit the 500-line limit.

    line 85
  10. Common:

    Don't commit credentials, PII, or real tokens even in examples.

    line 86
  11. Very specific:

    If you're working on this repo across multiple sessions, nothing here needs persistent memory — this file and CONTRIBUTING.md are the …

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

AGENTS.md — instructions for agents editing this repo

This file tells AI coding agents (Claude Code, Cursor, Codex, etc.) how to work on this repo itself — i.e. when you're adding a new Perfex gotcha, fixing a typo, or shipping a new skill. It's not for agents consuming these skills at runtime; those agents read the individual SKILL.md files under skills/.

Ground rules

  1. Every new rule must cite a real production bug. Speculative advice gets rejected. If you can't write "symptom → root cause → why a general agent would get it wrong," the rule isn't ready.

1b. Every API name must exist in Perfex core source. Not "in the docs" — in application/. v1.4.0 shipped 14 plausible, undocumented, nonexistent functions/hooks/columns because they were only checked against help.perfexcrm.com. Before committing, run scripts/verify-against-core.sh /path/to/perfex against a real install (any 3.x); if you don't have one, name the file:line you'd expect and say so in the PR. Never invent a filter or helper to make an example tidy — if core has no clean extension point, say that.

  1. Don't copy Perfex docs. Perfex is commercial software sold on CodeCanyon. Link to help.perfexcrm.com; don't mirror their content into references/.
  2. Keep each SKILL.md under 500 lines and each description under 1024 chars. The Agent Skills spec limits these, and the validator will fail the PR if you bust them.
  3. Run the validators before committing.
    ./validate-skills.sh                                   # spec shape — CI runs this
    scripts/verify-against-core.sh /path/to/perfex         # API existence — needs a local install

Where things live

PathPurpose
skills/<name>/SKILL.mdThe skill itself — frontmatter + instructions
skills/<name>/references/*.md(optional) overflow content loaded on demand
skills/<name>/scripts/(optional) executable helpers
skills/<name>/assets/(optional) templates, fixtures
.claude-plugin/marketplace.jsonPlugin manifest — list any new skill here
llms.txtIndex for AI assistants — add a line for any new skill
README.mdPublic-facing intro + the 8 hard rules
CHANGELOG.mdKeep-a-changelog, one section per tagged release
VERSIONS.mdPer-skill version table + dated change notes
CONTRIBUTING.mdVersioning policy, PR checklist
validate-skills.shZero-dep validator
validate-skills-official.shRuns the canonical agentskills/skills-ref validator
scripts/verify-against-core.shGreps every referenced API against a local Perfex install
scripts/verify-allowlist.txtNames the verifier skips (PHP/CI builtins, example placeholders)
scripts/verify-denylist.txtNames a skill says do NOT exist — the verifier fails if core has them

Frontmatter required shape

---
name: perfex-xxx          # must match dir name, lowercase + hyphens, 1-64 chars
description: ...          # 1-1024 chars, pushy, with concrete trigger keywords
license: MIT
metadata:
  author: yasserstudio
  version: "1.0.0"
---

Adding a new skill

  1. Create skills/<new-skill>/SKILL.md with full frontmatter.
  2. Add "./skills/<new-skill>" to the skills array in .claude-plugin/marketplace.json.
  3. Add a row to VERSIONS.md.
  4. Add a skill entry to the README's skills table.
  5. Add a CHANGELOG entry under [Unreleased] → ### Added.
  6. Run ./validate-skills.sh.
  7. On release, bump metadata.version to 1.0.0, tag the repo (MINOR bump).

Editing an existing skill

  • Triggering-relevant changes (description, name): bump skill's metadata.version appropriately (see CONTRIBUTING.md semantics) and update VERSIONS.md.
  • Body-only changes (new section, typo, example): update Last Updated in VERSIONS.md, bump skill version if material.
  • Always add a CHANGELOG entry.

Release workflow

See CONTRIBUTING.md#release-process. TL;DR:

# After merging the release PR:
git tag -a vX.Y.Z -m "vX.Y.Z: <summary>"
git push origin main --tags
gh release create vX.Y.Z --title "vX.Y.Z — <summary>" --notes-from-tag

What NOT to do

  • Don't add a skill for a domain this repo doesn't cover (e.g. a generic CodeIgniter skill, a WordPress-Perfex bridge). Open an issue first.
  • Don't refactor skill layouts or rename skills without flagging it as a MAJOR bump — those changes break anyone pinned to an earlier tag.
  • Don't add references/ material unless a SKILL.md has genuinely hit the 500-line limit. Consolidated content is easier for humans to read.
  • Don't commit credentials, PII, or real tokens even in examples.

Memory note for AI agents

If you're working on this repo across multiple sessions, nothing here needs persistent memory — this file and CONTRIBUTING.md are the source of truth. Don't save "how to work on perfex-crm-skills" as a memory; read this file fresh each time.

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.