Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/lacymorrow/paperclip-hubWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/lacymorrow/paperclip-hub/single-responsibility-principle)<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/single-responsibility-principle"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/single-responsibility-principle/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/single-responsibility-principle"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/single-responsibility-principle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00707 |
| Opus 5.5 | $0.00000 | $0.00283 |
| Sonnet 5.5 | $0.00000 | $0.00141 |
| Haiku 4.5 | $0.00000 | $0.00071 |
Grade A, and why
single-responsibility-principle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Single Responsibility Principle (SRP)
Definition
The Single Responsibility Principle states that "A module should be responsible to one, and only one, actor." In simpler terms, a class or function should have only one reason to change.
Core Principles
- Each module has one clearly defined purpose
- Services handle only their domain concerns
- User creation belongs only in UserService
- Payment processing belongs only in PaymentService
- Side effects are managed by their respective services
- Cross-cutting concerns use service composition
Signs of SRP Violations
- Methods doing multiple unrelated things
- Large service files (>300 lines)
- Services creating/managing entities outside their domain
- Duplicated logic across services
- A change in one feature requires changes in multiple services
- Conditional logic based on entity types
- Direct database access across domain boundaries
Best Practices
Service Organization
- Services should only manipulate their own domain entities
- UserService should be the ONLY place creating/updating users
- TeamService should be the ONLY place creating/updating teams
- PaymentService should NEVER create users directly
- Use service composition instead of cross-domain logic
Correct Patterns
// ✅ Good: PaymentService calls UserService for user creation
const user = await userService.ensureUserExists({
email: payment.email,
name: payment.name
});
await this.linkPaymentToUser(payment, user.id);
// ✅ Good: UserService manages all user creation side effects
async createUser(data) {
const user = await this.insert(data);
await this.createPersonalTeam(user.id);
await this.createDefaultApiKey(user.id);
return user;
}
Incorrect Patterns
// ❌ Bad: PaymentService creating users directly
const [user] = await db.insert(users).values({
email: payment.email,
name: payment.name
}).returning();
// ❌ Bad: Duplicated team creation logic
await db.insert(teams).values({
id: randomUUID(),
name: "Personal",
userId: user.id
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 110 lines · 0 tokens per session scan A 0d202ca7f2a1
single-responsibility-principle is a cursor rule published in the GitHub repository lacymorrow/paperclip-hub (15 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 707 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.
single-responsibility-principle compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| single-responsibility-principlelacymorrow/paperclip-hub | Cursor rule | 15 | yesterday | MIT | A | 0 | Cursor |
| ultraciteelie222/inbox-zero | Cursor rule | 13k | today | none | A | 0 | Cursor |
| always-push-pritsmemeworks/adhx | Cursor rule | 19 | 5d ago | MIT | A | 279 | Cursor |
| refactoring-skillKaelSensei/MagicAIBuilder | Cursor rule | 2 | yesterday | MIT | A | 119 | Cursor |
| tech-lead-skillKaelSensei/MagicAIBuilder | Cursor rule | 2 | yesterday | MIT | A | 112 | Cursor |
| code-style-and-improvementsWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 7d ago | none | A | 104 | Cursor |
| single-responsibility-principleshipkit-io/bones | Cursor rule | 21 | yesterday | none | A | 0 | Cursor |