rule-api-tasks

Community

Enforce robust API background task patterns.

Authorbtabaska
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill codifies the API background task conventions, ensuring consistent, auditable, and safe patterns for long-running work by guiding task definitions, metrics, and lifecycle handling.

Core Features & Use Cases

  • Enforces a Task base class where all background tasks inherit and implement run_task.
  • Defines a Metrics enum for structured measurement and avoids raw counters.
  • Uses SubTask for batched processing to prevent unbounded workloads.
  • Implements JobLog-based status tracking and ensures cleanup in finally blocks.
  • Provides context-enrichment guidance for integration with the simpler-grants context server and related MDCs.

Quick Start

Integrate these rules when adding a new API background task by extending the Task base, defining Metrics, and following the prescribed patterns.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rule-api-tasks
Download link: https://github.com/btabaska/simpler-grants-documentation-automation/archive/main.zip#rule-api-tasks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.