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/coding-style)<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/coding-style"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/coding-style/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/coding-style"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/coding-style.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.00486 |
| Opus 5.5 | $0.00000 | $0.00194 |
| Sonnet 5.5 | $0.00000 | $0.00097 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
coding-style 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Coding Style Guidelines
Naming Conventions
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError)
- Use kebab-case for file names (e.g.,
user-profile.tsx) - Use PascalCase for component names (e.g.,
UserProfile) - Use camelCase for variables and functions
- Use SCREAMING_SNAKE_CASE for constants
File Structure
- Exported component
- Subcomponents
- Helpers
- Static content
- Types
- Keep files small (<200 lines)
TypeScript Usage
- Use TypeScript for all code
- Prefer interfaces over types
- Avoid enums; use maps instead
- Use functional components with TypeScript interfaces
- Pre-emptively add types to all functions and variables
- Fix all TypeScript errors and warnings
- Use proper type imports
React Components
- Use arrow functions for components:
✅ export const Component = () => { ... } ❌ export function Component() { ... } ❌ export default function Component() { ... } - One component per file
- Use named exports
- Keep components focused and small
- Document complex logic
Comments
- Pre-emptively add comments to explain "why" behind the code
- Preserve existing comments unless specifically asked to modify
- Use callouts and examples:
/* * Logging configuration * @see https://nextjs.org/docs/app/api-reference/next-config-js/logging */ - Document complex logic and important decisions
Code Organization
- Group related code together
- Use index files for exports
- Separate concerns appropriately
- Follow DRY principles
- Pre-emptively optimize for production
- Keep code maintainable and readable
Error Handling
- Handle all potential errors
- Provide meaningful error messages
- Use proper error boundaries
- Log errors appropriately
- Document error scenarios
Testing
- Write tests for new functionality
- Test edge cases
- Follow existing test patterns
- Document test coverage expectations
- Keep tests maintainable
Best Practices
- Use open-source libraries when beneficial
- Follow security best practices
- Optimize for performance
- Consider accessibility
- Document architecture decisions
- Maintain consistency across codebase
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 · 84 lines · 0 tokens per session scan A efc5fc688503
coding-style 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 486 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.
coding-style compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coding-stylelacymorrow/paperclip-hub | Cursor rule | 15 | yesterday | MIT | A | 0 | Cursor |
| update-ai-sdkgiselles-ai/giselle | Cursor rule | 560 | yesterday | Apache-2.0 | A | 11 | Cursor |
| functionsthedaviddias/llms-txt-hub | Cursor rule | 926 | yesterday | none | A | 506 | Cursor |
| technical-stackKaelSensei/MagicAIBuilder | Cursor rule | 2 | today | MIT | A | 1,259 | Cursor |
| typescript-code-generation-rulesWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 7d ago | none | A | 402 | Cursor |
| typescript-coding-styleWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 7d ago | none | A | 128 | Cursor |
| react-and-typescript-general-rulesWebDevPeterGriffin/The-VibeCode-Bible | Cursor rule | 42 | 7d ago | none | A | 142 | Cursor |