Skip to content
Skills Library
Programming · Building & coding

add-endpoint

/add-endpoint

Add or change a Bitpin API endpoint, response field, error or capability across spec, fixtures, generated code, the Python client, tests and both languages' docs. Use when the API gains an endpoint, a field changes shape, or a "not available yet" feature becomes available.

Repository
bitpin-sdk ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content21 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Add or change a Bitpin API endpoint, response field, error or capability across spec, fixtures, generated code, the Python client, tests and both languages' docs. Use when the API gains an endpoint, a field changes shape, or a "not available yet" feature becomes available.

Triggers from the description

not available yet
Original author description

Add or change a Bitpin API endpoint, response field, error or capability across spec, fixtures, generated code, the Python client, tests and both languages' docs. Use when the API gains an endpoint, a field changes shape, or a "not available yet" feature becomes available.

How it works

SKILL.md has no level-two headings · 15 lines, 286 words

SKILL.md preview
---
name: add-endpoint
description: Add or change a Bitpin API endpoint, response field, error or capability across spec, fixtures, generated code, the Python client, tests and both languages' docs. Use when the API gains an endpoint, a field changes shape, or a "not available yet" feature becomes available.
---

# Add or change an endpoint

The spec is the contract; work outward from it. Each step ends when its check passes.

1. **Confirm it's public.** The path starts with `/api/`. Anything else is out of scope; tell the user and stop.
2. **Spec.** Add or edit the entry in `spec/bitpin.yaml`: id, method, path (trailing slash), auth, buckets, idempotent, docs. Add a rate-limit bucket if the endpoint has its own server throttle. Add error rules if it has its own codes. If it fulfils a `has: false` capability, flip it to `true` and delete its `not_supported` message. Check: `uv run python ../scripts/check_spec.py` passes.
3. **Fixture.** Add or update `fixtures/<endpoint id>.json` with the real response shape and synthetic values. Check: `uv run pytest tests/test_fixtures.py tests/test_spec.py` passes.
4. **Generate.** `uv run python ../scripts/gen_python.py`. Check: `tests/test_generated.py` passes.
5. **Tests first.** Write failing tests: a parser test in `tests/core/test_parse.py` with exact expected values, and a client test (in `test_public.py`, `test_trading.py` or `test_wallet.py`) asserting the exact request sent and the parsed result. A write endpoint also gets a sent-once-on-`NetworkError` test. Check: they fail because the method is missing.
6. **Implement.** Parser in `_core/parse.py`, unified method in `_async/client.py` with the ccxt name if ccxt has one. Then `uv run python ../scripts/gen_sync.py`. Check: the new tests pass on both clients.
7. **Docs.** Add the method to the right page in `docs/en` **and** `docs/fa`, and to `llms.txt`; if it changed a limit or capability, update `rate-limits.md` / `not-supported.md` in both languages. Run `gen_llms_full.py`. Check: `check_docs.py` prints `docs ok`.
8. **Full gate.** Run every command in `.ai/project/AGENTS.md`. Done when all are green and coverage is at least 95 %.
9. **Commit** as `feat(python): …` (or `feat(spec): …` for spec-only), listing the endpoint in the body.

Versions

RepositoryScoreLicence
This page · bitpin-dev/bitpin-sdk86MIT
davidelka/ai-engineer-course-starter100MIT
steamfield/stacks96Apache-2.0
steamfield/stacks96Apache-2.0

Database snapshot: 13.11.2026 · package version 6476e99c4c63 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 86sync-with-core
    Re-verify spec/bitpin.yaml (rate limits, constants, request fields, response shapes, error codes) against the Bitpin server's own source code. Use when a maintainer with access to Bitpin's private backend asks to check the SDK is still accurate, or before a release.
  • 95backend-endpoint
    Create REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add route".
  • 90add-api-endpoint
    Use when a ticket asks to add or extend an HTTP/API endpoint — a new route, handler, or RPC method — with request validation and a defined response. Invoke for "add a POST /things endpoint", "expose a list API", or "add a field to the X response".
  • 100bitpin-trading-bot
    Write a trading bot, market-making loop, strategy or script that trades on Bitpin with the bitpin-sdk Python package. Use when a user asks an agent to automate trading, quoting, order management or withdrawals on Bitpin.
  • 86add-resource
    Add a REST resource or endpoint to this Hono API end to end, with its zod schemas, store, createRoute declarations, handlers and contract tests. Use when asked for a new resource, endpoint or route.
  • 100new-endpoint
    Add or change a Django REST Framework endpoint the standard way, with field gating, layered permissions, pagination, optimistic concurrency, the error envelope, tests and an exported OpenAPI contract. Use for any new or changed API surface.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.