AGENT SKILL

repo-development

Guide Observal repository-wide setup, lint/test selection, contributor policy, release/compliance scripts, and PR readiness workflow.

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

01 前言 Front Matter

name
repo-development
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guide Observal repository-wide setup, lint/test selection, contributor policy, release/compliance scripts, and PR readiness workflow.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Observal Repo Development Router

Use this sub-skill when a task is about repository-wide contributor operations rather than one product layer: local setup, Make targets, choosing lint and test commands, pre-commit/SPDX/license policy, AI contribution policy, changelog and documentation updates, conventional commits, release/compliance scripts, safe use of development scripts, or the final PR review checklist.

Do not use this sub-skill as the primary guide for detailed implementation inside one layer. Route detailed Typer command work to cli, FastAPI/data/migration work to server, harness registry/adapters/hooks/parsers/session delivery to harness-telemetry, and Vite/React/TanStack Router frontend work to web. Use this sub-skill to coordinate cross-cutting checks and contributor obligations around those changes.

Route the request

  • First-time setup, local development loop, rebuild target choice, branch/commit/PR workflow, changelog/docs obligations: read references/development-workflow.md.
  • Choosing focused tests, avoiding unnecessary Docker/E2E runs, pytest patterns, ruff/pre-commit/SPDX expectations: read references/testing-and-quality.md.
  • Make target inventory, repository scripts, release preparation, license/SBOM/VEX/compliance tooling, live-data seeders, and script safety levels: read references/repo-scripts.md.
  • Install/import, CLI/API, config, optional dependency, telemetry/harness, Playwright, release, migration, pre-commit, or workflow failures: read references/troubleshooting.md.

Non-negotiable contributor rules

  1. Start from the smallest owning sub-skill for code changes, then return here for repository-wide checks.
  2. Keep tests hermetic by default. Docker is for the local stack, Playwright/E2E, live integration scripts, and manual service validation; it is not required for normal Python unit tests.
  3. Any CLI command add/remove/rename/flag change must update bundled CLI skill files and regenerate the auto-generated Observal command reference.
  4. Any user-facing behavior change needs a changelog entry under [Unreleased]; frontend UI changes also need screenshots in the PR body.
  5. New source files need SPDX copyright and Apache-2.0 license headers. Let hooks update committer copyright lines rather than hand-editing bulk headers unless doing a dedicated license repair.
  6. Follow Conventional Commits (feat, fix, docs, refactor, test, build, ci, chore with optional scope). Keep subject lines short, imperative, and without trailing periods.
  7. AI-assisted PRs are allowed only with accountable human direction, full human diff review, local execution of appropriate checks, and explicit AI tool/version disclosure. Unattended autonomous submissions are not acceptable.
  8. Never commit private harness/editor directories or generated local worktrees such as .claude/, .kiro/, .cursor/, .gemini/, .opencode/, .copilot/, .vscode/, .worktrees/, or their companion instruction files.

Fast repo inspection

From the repository root, run this bundled read-only helper before choosing a broad workflow:

python skills/disco/observal/sub-skills/repo-development/scripts/inspect_observal_repo.py --repo-root . --pretty

Expected signal: JSON containing repository markers, package versions, Make targets, test layout counts, selected evidence-file summaries, and script summaries. The helper should not write files, call the network, invoke Docker, or expose absolute local checkout paths.

Default work loop

  1. Identify the owning implementation layer and the user-visible behavior being changed.
  2. Use the implementation owner for code design, then use this sub-skill to choose focused tests, docs/changelog updates, and policy checks.
  3. Run the narrowest safe checks first, then broaden to make test, make lint, and make check when the diff is PR-ready or touches cross-cutting policy/build files.
  4. If a script can mutate files, call a preview/dry-run mode first when available and inspect the diff before committing.
  5. Before handoff, state what was tested, what was intentionally not tested, whether Docker/E2E was needed, and any remaining policy or reviewer questions.

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