api-add-route
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "api-add-route" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1be4de370aa5ac58f8c1364c2575b3959a3f9715c15c2509534e4e8658431157. Verify the upstream source and version against https://github.com/coleam00/helpline before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used when adding or modifying HTTP routes under services/api. Provides step-by-step guidance to ensure new routes follow the Helpline gateway specifications.
Introduction source: third_party · coleam00 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Not specified in the source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: api-add-route
description: >-
Use when adding or changing an HTTP route under services/api. Walks the exact
steps so the new route follows Helpline's gateway conventions.
paths: services/api/**Adding an API route
Activates for work in services/api. Follow these steps in order.
- Write the handler in the matching module (
tickets.pyfor ticket routes, a new module for a new noun). Signature is(request: dict) -> dict. - Validate inputs first. Missing/!bad input raises
ValidationError— never return an error dict by hand. - Do no business logic here. Call a repo (
packages/db) or another service. The handler only orchestrates and shapes the response. - Register the route in
routes.pyinsidebuild_app()—app.route("METHOD /path", handler). A route not registered there does not exist. - Add a test in
tests/that builds the app and dispatches the route.
Full checklist with a worked example: references/route-checklist.md.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供在 services/api 下添加或修改 HTTP 路由的明确步骤指导
- 确保新路由遵循 Helpline 网关规范,具有实用价值
Highlights
- 触发词描述清晰,指定了使用场景和路径
- 边界较为清晰,不易误触
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档中缺少明确的 When to Use 章节,虽然触发词已说明,但建议补充以增强可读性。
Recommendation: 建议在文档开头添加 When to Use 章节,明确说明何时使用此 Skill。
-
缺少端到端示例 Reported severity: Minor
虽然有引用 checklist,但未在正文中展示端到端示例,用户可能需要额外查找。
Recommendation: 建议在正文中添加一个端到端示例,展示如何完整地添加一个 API 路由。
Highlights
- 结构清晰,分步骤说明,frontmatter 完整
Areas to improve
-
缺少不可逆操作确认机制说明 Reported severity: Minor
文档中未提及对不可逆操作(如删除路由)的确认机制。
Recommendation: 建议在步骤中添加对不可逆操作的确认机制说明,以提高执行可靠性。
Highlights
- 步骤逻辑清晰,参数正确,覆盖了主要异常(如 ValidationError)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.