{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "seyedehsanhadi-sloptrim--apply-writing-contract-to-repo",
 "repo": "seyedehsanhadi/sloptrim",
 "repo_url": "https://github.com/seyedehsanhadi/sloptrim",
 "repo_slug": "seyedehsanhadi-sloptrim",
 "title": "Add a prose contract to AGENTS.md and Cursor rules",
 "page_title": "How to add a prose contract to AGENTS.md and Cursor rules with Sloptrim",
 "summary": "Write the Sloptrim contract into a project so Codex or Cursor agents follow it.",
 "who": "A team lead or developer whose project uses Codex or Cursor to write documentation and wants the same prose rules applied in that repo.",
 "problem": "Each agent session starts without the team's prose rules, so the output varies from one run to the next.",
 "outcome": "The project gets an AGENTS.md file with the Sloptrim contract and a Cursor rule in .cursor/rules/, so agents read the same guidance.",
 "steps": [
  "Open the project folder where the agent will work",
  "Run `/sloptrim init` in an agent session that has the Sloptrim plugin installed",
  "Open the new `./AGENTS.md` file and confirm the contract is present",
  "Check that a Cursor rule was written to `./.cursor/rules/`",
  "Commit the new files so the whole team gets the same contract"
 ],
 "agent_prompt": "In the project at <project path>, run `/sloptrim init` and report which files were written. Verify that AGENTS.md exists and that a Cursor rule exists under .cursor/rules/.",
 "agents": [
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README describes the contract as writing advice, and 12 of the 62 detectors count for nothing in the score, so the contract does not guarantee a low score.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.9 or newer for the detector",
  "Node for the Claude Code hooks",
  "Git, to clone the repository",
  "A coding agent such as Claude Code, Codex or Cursor, if you want the on-save guard or the contract"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/seyedehsanhadi-sloptrim/apply-writing-contract-to-repo/",
 "md": "https://dedupedai.com/use-cases/seyedehsanhadi-sloptrim/apply-writing-contract-to-repo/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/seyedehsanhadi-sloptrim--apply-writing-contract-to-repo.json",
 "api_version": "v1"
}
