Skip to content
Back to skills

Rep1 Failed

ASecurity

This skill implements a complete REST API service for managing a book collection in Python with Flask and SQLite database.

  • 211 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 8, 2026
testingpythonsqlflasktestingapidatabase

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

npx -y skills add adrianco/retort --skill rep1-failed --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rep1 Failed?

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

Security grade badge for Rep1 Failed
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adrianco-rep1-failed/badge)](https://www.skillsdirectory.com/skills/adrianco-rep1-failed)

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
# Book API Python REST Service Implementation

This skill implements a complete REST API service for managing a book collection in Python with Flask and SQLite database.

## Features

- Create, read, update, and delete books
- Filter books by author
- Health check endpoint
- Input validation
- JSON responses with appropriate HTTP status codes
- SQLite database storage

## Endpoints

- `POST /books` - Create a new book (title, author, year, isbn)
- `GET /books` - List all books (support ?author= filter)
- `GET /books/{id}` - Get a single book by ID
- `PUT /books/{id}` - Update a book
- `DELETE /books/{id}` - Delete a book
- `GET /health` - Health check

## Implementation Details

The implementation uses:
- Python 3.6+
- Flask web framework
- SQLite3 via built-in sqlite3 module
- Embedded database in a local file (books.db)
- HTTP handlers for all endpoints
- Proper error handling and validation
- Unit tests for all functionality

## Usage

1. Install dependencies:
   ```
   pip install -r requirements.txt
   ```

2. Run the application:
   ```
   python app.py
   ```

3. The API will be available at `http://localhost:8080`

## Testing

The implementation includes unit tests covering:
- Health check endpoint
- Book creation with validation
- Book retrieval
- Book updates
- Book deletion
- Error handling

Files in this skill

  • README.md1 KB
  • SKILL.md1.3 KB
  • TASK.md754 B
  • _meta.json261 B
  • app.py5.7 KB
  • requirements.txt12 B
  • scores.json130 B
  • stack.json176 B
  • tests.py5.3 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.

View all in testing →

Comments

Loading comments…

Newsletter

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