AGENT SKILL

api-service

Operate the apod-api Flask service locally or from an API client: start it safely, construct valid APOD queries, interpret responses and errors, and troubleshoot upstream, cache, CORS, and static-asset behavior.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
api-service
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate the apod-api Flask service locally or from an API client: start it safely, construct valid APOD queries, interpret responses and errors, and troubleshoot upstream, cache, CORS, and static-asset behavior.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

APOD API service

Use this sub-skill when the task is to run apod-api, query /v1/apod, choose date, count, start_date, or end_date, diagnose Flask 400/404 responses, check the service version, or investigate NASA APOD availability.

Route

  1. Read API reference before constructing a request. It is the authority for the implemented route, query combinations, boolean parsing, response fields, and error envelopes.
  2. Follow workflows to install the public runtime, inspect routes without network access, run the bounded startup wrapper, and issue client requests.
  3. Use troubleshooting for malformed input, missing routes, APOD HTML/network failures, the volatile cache, static fallback assets, and missing concept-tag credentials.
  4. Keep standalone JSON accessors and image conversion in parser-and-media. Keep Gunicorn, Docker, Compose, and Locust operations in deployment-and-operations.
  5. For repository-wide issues, also consult the shared troubleshooting guide.

Safe operating boundary

The service scrapes the live APOD website; a successful request is therefore a network-dependent observation, not an offline fixture lookup. concept_tags requires a credential-bound Alchemy integration and is deliberately documented as degraded when that credential is absent. Do not put API keys or credentials in commands, scripts, or skill files.

The distribution declares version 1.1.0 and Python >=3.12; the Flask service itself returns service_version: "v1". The current project metadata is not safe to treat as a default editable setuptools install: flat-layout discovery sees top-level apod, apod_parser, static, templates, and skills as ambiguous. The workflow documents a non-editable runtime setup instead of hiding this packaging limitation.

Verification hooks

The bundled scripts/run_service.py must pass --help and --inspect-routes without contacting APOD. Whole-skill integration should later run the safe application-import and custom-404 candidates, then add synthetic conflicting-query and upstream-outage cases before claiming native service coverage.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351