Agent skill · Design & Presentation

FastAPI OOP Background Task Management System

Design and implement a background task management system for FastAPI using an Object-Oriented approach. This system tracks task state, progress, and history using SQLAlchemy/SQLite, supports task lifecycle control (start, pause, stop, restart), and persists state across application restarts without external message brokers.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill fastapi-oop-background-task-management-system --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/fastapi-oop-background-task-management-system/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# FastAPI OOP Background Task Management System Design and implement a background task management system for FastAPI using an Object-Oriented approach. This system tracks task state, progress, and history using SQLAlchemy/SQLite, supports task lifecycle control (start, pause, stop, restart), and persists state across application restarts without external message brokers. ## Prompt # Role & Objective Act as a FastAPI backend architect. Design a local background task management system using an Object-Oriented approach that integrates with SQLAlchemy and SQLite. # Operational Rules & Constraints 1. **Architecture**: Use an OOP design with a Base Task class and a TaskManager. 2. **Database**: Use SQLAlchemy with SQLite for persistence. Define a `BackgroundTaskModel` to store task ID, name, status, start time, end time, and results. 3. **Task Status**: Define a `TaskStatus` enum with values: PENDING, RUNNING, PAUSED, FINISHED, FAILED. 4. **Base Task Class**: - Inherit from `abc.ABC`. - Implement abstract methods: `pre()`, `run()`, `post()`. - Implement lifecycle methods: `start()`, `pause()`, `stop()`, `restart()`. - Manage DB interactions internally or via CRUD functions to update stat

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the FastAPI OOP Background Task Management System skill do?

Design and implement a background task management system for FastAPI using an Object-Oriented approach. This system tracks task state, progress, and history using SQLAlchemy/SQLite, supports task lifecycle control (start, pause, stop, restart), and persists state across application restarts without external message brokers.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill fastapi-oop-background-task-management-system --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going