Skip to content
Back to skills

2587 Cooldown Enforcement 6206b24f

ASecurity

Automated rate-limiting for resource submissions. Applies to both issues and pull requests.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 31, 2026
code-qualityapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 2587-cooldown-enforcement_6206b24f --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2587 Cooldown Enforcement 6206b24f?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2587 Cooldown Enforcement 6206b24f
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2587-cooldown-enforcement-6206b24f/badge)](https://www.skillsdirectory.com/skills/tools-only-2587-cooldown-enforcement-6206b24f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Cooldown Enforcement

Automated rate-limiting for resource submissions. Applies to both issues and pull requests.

## How it works

Every submission is checked against a state file (`cooldown-state.json`) stored in the private ops repo. The state tracks each user's cooldown level, active cooldown expiry, and ban status.

**Violations** (each starts or extends a cooldown):

| Violation | Trigger |
|---|---|
| Missing form label | Issue opened without using the submission template |
| Repo too young | Linked repository is less than 7 days old |
| Submitted as PR | Pull request classified as a resource submission by Claude |
| Submitted during cooldown | Any submission while an active cooldown is in effect |

**Escalation** — each violation doubles the cooldown period:

| Level | Duration |
|---|---|
| 0 → 1 | 24 hours |
| 1 → 2 | 48 hours |
| 2 → 3 | 4 days |
| 3 → 4 | 8 days |
| 4 → 5 | 16 days |
| 5 → 6 | 32 days |
| 6 | Permanent ban |

Submitting during an active cooldown is itself a violation — the cooldown extends and the level increments. Persistence is counterproductive.

## Maintainer controls

- **`excused` label** — apply to any issue to bypass cooldown checks entirely. The workflow skips enforcement and proceeds directly to validation.
- **Manual state edits** — the state file lives in the private repo file `cooldown-state.json`. You can edit it directly to reduce a user's level, clear their cooldown, or remove a ban. Each entry looks like:

```json
{
  "username": {
    "active_until": "2026-02-24T12:00:00.000Z",
    "cooldown_level": 2,
    "last_violation": "2026-02-22T12:00:00.000Z",
    "last_reason": "repo-too-young"
  }
}
```

To unban someone, delete their entry or set `banned: false` and `cooldown_level: 0`.

## PR classification

Pull requests are classified by Claude (Haiku) as either `resource_submission` or `not_resource_submission` with a confidence level. Resource submissions are closed with a redirect to the issue template and trigger a cooldown violation. Non-resource PRs with low confidence get a `needs-review` label. API failures fail open — the PR stays untouched.

## Concurrency

Runs are serialized per-user (concurrent submissions from the same user queue). Different users process in parallel. The ops repo file uses optimistic locking (SHA-based) — if two concurrent writes race, the loser's violation isn't recorded but will be caught on the next submission.

Files in this skill

  • README.md920 B
  • skill.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.