ai-following-rules
Skill11 starsChanged 5 months agoNo licenceView on GitHub
Make your AI follow rules and policies. Use when your AI breaks format rules, violates content policies, ignores business constraints, outputs invalid JSON, exceeds length limits, includes forbidden content, or does not comply with your specifications. Also use when LLM JSON output is unreliable, you get inconsistent formatting with random spaces and line breaks, or there is extraneous text and conversational fluff around the JSON. Covers dspy.Refine and dspy.BestOfN for hard and soft rule enforcement, content policies, format enforcement, retry mechanics, and composing multiple constraints. Also used for - AI will not follow my system prompt, LLM keeps breaking format, enforce JSON schema on AI output, AI generates prohibited content, constraint violation from LLM, make AI obey business rules, AI ignores my constraints.
In this repository95 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-auditing-codeSkill
- ai-building-chatbotsSkill
- ai-building-pipelinesSkill
- ai-checking-outputsSkill
- ai-choosing-architectureSkill
- ai-cleaning-dataSkill
- ai-coordinating-agentsSkill
- ai-cutting-costsSkill
- ai-decomposing-tasksSkill
- ai-detecting-anomaliesSkill
- ai-doSkill
- ai-fine-tuningSkill
- ai-fixing-errorsSkill
- ai-generating-dataSkill
- ai-generating-notificationsSkill
- ai-improving-accuracySkill
- ai-kickoffSkill
- ai-making-consistentSkill
- ai-matching-recordsSkill
- ai-moderating-contentSkill
- ai-monitoringSkill
- ai-parsing-dataSkill
- ai-planningSkill
- ai-querying-databasesSkill
- ai-reasoningSkill
- ai-recommendingSkill
- ai-redacting-dataSkill
- ai-request-skillSkill
- ai-rewriting-textSkill
- ai-scoringSkill
- ai-searching-docsSkill
- ai-serving-apisSkill
- ai-sortingSkill
- ai-stopping-hallucinationsSkill
- ai-summarizingSkill
- ai-switching-modelsSkill
- ai-taking-actionsSkill
- ai-testing-safetySkill
- ai-tracing-requestsSkill
- ai-tracking-experimentsSkill
- ai-translating-contentSkill
- ai-understanding-imagesSkill
- ai-watching-optimizationSkill
- ai-writing-contentSkill
- dspy-adaptersSkill
- dspy-assertionsSkill
- dspy-asyncSkill
- dspy-best-of-nSkill
- dspy-better-togetherSkill
- dspy-bootstrap-few-shotSkill
- dspy-bootstrap-finetuneSkill
- dspy-bootstrap-rsSkill
- dspy-chain-of-thoughtSkill
- dspy-chatadapterSkill
- dspy-citationsSkill
- dspy-codeactSkill
- dspy-coproSkill
- dspy-dataSkill
- dspy-ensembleSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
No licence file, so all rights are reserved — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.
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.

