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/madebyaris/poinf-of-salesWrote 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/madebyaris/poinf-of-sales/tech-debt-prevention)<a href="https://agentmods.dev/rules/madebyaris/poinf-of-sales/tech-debt-prevention"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/tech-debt-prevention/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/madebyaris/poinf-of-sales/tech-debt-prevention"><img src="https://agentmods.dev/badge/rules/madebyaris/poinf-of-sales/tech-debt-prevention.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.00015 | $0.05463 |
| Opus 5 | $0.00008 | $0.02731 |
| Sonnet 5 | $0.00003 | $0.01093 |
| Haiku 4.5 | $0.00002 | $0.00546 |
Grade A, and why
tech-debt-prevention 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 13d ago.
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 — 874 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🏗️ Tech Debt Prevention & Code Quality Governance
🎯 Zero Tech Debt Philosophy
Proactive Prevention Strategy
// ✅ TECH DEBT PREVENTION: Systematic approach to code quality
namespace TechDebtPrevention {
// Code quality metrics and thresholds
interface QualityGates {
code_coverage: { minimum: 85, target: 90 }
complexity_score: { maximum: 10, target: 7 }
duplication: { maximum: 3, target: 1 }
performance: { api_response: '< 200ms', ui_render: '< 100ms' }
security: { vulnerabilities: 0, code_quality: 'A' }
}
// Automated quality enforcement
class QualityEnforcer {
static enforcePreCommitQuality(): PreCommitHook {
return {
// Code format and style
prettier_format: true,
eslint_validation: true,
typescript_strict_check: true,
// Business logic validation
business_rule_consistency: true,
api_contract_validation: true,
database_migration_safety: true,
// Performance validation
bundle_size_check: true,
query_performance_validation: true,
memory_leak_detection: true
}
}
}
}
🔒 Consistency Enforcement Patterns
1. Architectural Consistency
// ✅ CONSISTENCY: Standardized architectural patterns
class ArchitecturalConsistency {
// Enforce consistent API patterns
static createAPIEndpoint<TRequest, TResponse>(
config: APIEndpointConfig<TRequest, TResponse>
): StandardAPIEndpoint<TRequest, TResponse> {
return {
// Standardized request validation
validateRequest: (request: TRequest): ValidationResult => {
const validator = this.createValidator(config.validation_schema)
return validator.validate(request)
},
// Standardized business logic execution
executeBusinessLogic: async (request: TRequest): Promise<TResponse> => {
// Consistent error handling
try {
// Standardized logging
Logger.info(`Executing ${config.endpoint_name}`, { request })
// Business logic with consistent patterns
const result = await config.business_logic(request)
// Standardized success response
return {
success: true,
message: config.success_message,
data: result,
timestamp: new Date().toISOString(),
request_id: generateRequestId()
}
} catch (error) {
// Standardized error handling
return this.handleStandardError(error, config.endpoint_name)
}
},
// Standardized response formatting
formatResponse: (response: TResponse): StandardAPIResponse<TResponse> => {
return {
...response,
version: config.api_version,
performance_metrics: this.getPerformanceMetrics()
}
}
}
}
// Enforce consistent component patterns
static createBusinessComponent<TProps>(
config: ComponentConfig<TProps>
): React.FC<TProps> {
return React.memo((props: TProps) => {
// Standardized error boundary
return (
<ErrorBoundary fallback={config.error_fallback}>
{/* Standardized loading states */}
<Suspense fallback={config.loading_fallback}>
{/* Standardized accessibility */}
<div
role={config.accessibility.role}
aria-label={config.accessibility.label}
className={cn(config.base_classes, props.className)}
>
{/* Component content with consistent patterns */}
{config.render(props)}
</div>
</Suspense>
</ErrorBoundary>
)
}, config.memo_comparison || shallowEqual)
}
// Database query consistency
static createDatabaseQuery<TParams, TResult>(
config: QueryConfig<TParams, TResult>
): DatabaseQuery<TParams, TResult> {
return {
execute: async (params: TParams): Promise<TResult> => {
// Standardized query performance monitoring
const startTime = performance.now()
try {
// Standardized parameter validation
this.validateQueryParams(params, config.param_schema)
// Standardized query execution
const result = await this.executeQuery(config.query, params)
// Standardized performance logging
const duration = performance.now() - startTime
this.logQueryPerformance(config.name, duration, params)
return result
} catch (error) {
// Standardized error handling
this.handleQueryError(error, config.name, params)
throw error
}
}
}
}
}
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.
- 13d ago First seen · 874 lines · 15 tokens per session scan A b2c6b7d8a33a
tech-debt-prevention is a cursor rule published in the GitHub repository madebyaris/poinf-of-sales (142 stars, last pushed 1y ago), licensed MIT. It adds 15 tokens to every session and 5,463 once invoked, about $0.0001 per session on Opus 5. 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-08-30.
Other cursor rules, from other repositories
clean-code-skill
Based on Robert C. Martin (Clean Code) and enforced by SonarCloud. For the full reference, see the clean-code skill under .agents/skills/clean-code/SKILL.md.
refactoring-skill
Cursor rule "refactoring-skill" from KaelSensei/MagicAIBuilder, covering refactoring skill, principles, techniques, safety and cursor behavior.
tech-lead-skill
Inspired by senior engineering practices.
clean-code
Cursor rule "clean-code" from Novalya-Labs/plane-mcp-server, covering clean code guidelines, constants over magic numbers, meaningful names, smart comments and single responsibility.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.