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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prompt
- Triggers
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.
