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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- llms.txtllms.txt
- perfex-core-apisSkill
- perfex-customfieldsSkill
- perfex-databaseSkill
- perfex-emailSkill
- perfex-module-devSkill
- perfex-payment-gatewaySkill
- perfex-pdfSkill
- perfex-securitySkill
- perfex-themeSkill
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
- Very specific: line 56
Create skills/<new-skill>/SKILL.md with full frontmatter.
- Very specific: line 57
Add "./skills/<new-skill>" to the skills array in .claude-plugin/marketplace.json.
- Very specific: line 58
Add a row to VERSIONS.md.
- Distinctive: line 59
Add a skill entry to the README's skills table.
- Very specific: line 60
Add a CHANGELOG entry under [Unreleased] → ### Added.
- Distinctive: line 68
Always add a CHANGELOG entry.
- Distinctive: line 83
Don't add a skill for a domain this repo doesn't cover (e.g.
- Distinctive: line 84
Don't refactor skill layouts or rename skills without flagging it as a MAJOR bump — those changes break anyone pinned to an earlier tag.
- Very specific: line 85
Don't add references/ material unless a SKILL.md has genuinely hit the 500-line limit.
- Common: line 86
Don't commit credentials, PII, or real tokens even in examples.
- Very specific: line 90
If you're working on this repo across multiple sessions, nothing here needs persistent memory — this file and CONTRIBUTING.md are the …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.
Files
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
- 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.
- Don't copy Perfex docs. Perfex is commercial software sold on CodeCanyon. Link to
help.perfexcrm.com; don't mirror their content intoreferences/. - 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.
- 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
| Path | Purpose |
skills/<name>/SKILL.md | The 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.json | Plugin manifest — list any new skill here |
llms.txt | Index for AI assistants — add a line for any new skill |
README.md | Public-facing intro + the 8 hard rules |
CHANGELOG.md | Keep-a-changelog, one section per tagged release |
VERSIONS.md | Per-skill version table + dated change notes |
CONTRIBUTING.md | Versioning policy, PR checklist |
validate-skills.sh | Zero-dep validator |
validate-skills-official.sh | Runs the canonical agentskills/skills-ref validator |
scripts/verify-against-core.sh | Greps every referenced API against a local Perfex install |
scripts/verify-allowlist.txt | Names the verifier skips (PHP/CI builtins, example placeholders) |
scripts/verify-denylist.txt | Names 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
- Create
skills/<new-skill>/SKILL.mdwith full frontmatter. - Add
"./skills/<new-skill>"to theskillsarray in.claude-plugin/marketplace.json. - Add a row to
VERSIONS.md. - Add a skill entry to the README's skills table.
- Add a CHANGELOG entry under
[Unreleased]→### Added. - Run
./validate-skills.sh. - On release, bump
metadata.versionto1.0.0, tag the repo (MINOR bump).
Editing an existing skill
- Triggering-relevant changes (description, name): bump skill's
metadata.versionappropriately (see CONTRIBUTING.md semantics) and update VERSIONS.md. - Body-only changes (new section, typo, example): update
Last Updatedin 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-tagWhat 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.
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
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.

