Guide for writing Datasette plugins. This skill should be used when users want to create or develop plugins for Datasette, including information about plugin hooks, the cookiecutter template, database APIs, request/response handling, and plugin configuration.
<!-- /AI-GENERATED-NOTE -->[!NOTE] This is an AI-generated research report. All text and code in this report was created by an LLM (Large Language Model). For more information on how these reports are created, see the main research repository.
A comprehensive skill for writing Datasette plugins, covering all aspects of plugin development from initial setup through publishing.
Quick Start: Using the cookiecutter template to bootstrap a new plugin
Plugin Hooks: Comprehensive reference for the most commonly used hooks including:
prepare_connection - Custom SQL functionsregister_routes - Custom URL endpointsrender_cell - Custom table cell renderingextra_template_vars - Template context augmentationtable_actions - Custom table menu itemsactor_from_request - Authenticationpermission_allowed - AuthorizationRequest/Response Objects: Complete API reference for handling HTTP requests and creating responses
Database API: How to query and modify SQLite databases from plugins
Plugin Configuration: Reading and using configuration from datasette.yaml
Static Assets & Templates: Adding CSS, JavaScript, and custom HTML templates
Common Patterns: Ready-to-use code examples for frequent plugin tasks
Testing: How to write tests for your plugin
Publishing: Deploying to GitHub and PyPI
Invoke this skill when:
With this skill, you can create plugins that:
This skill was created using documentation and examples from:
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer