agentleFS
RLinfRLinf/RPent/.agents/skills/code/SKILL.md

code

Skill1.8k starsChanged 6 days agoApache-2.0View on GitHub

RPent code, tests, tools, and CI (rpent/, robots/, toolkits/, calibration_tools/, tests/, .github/, pyproject.toml, any .py file): read before writing or changing them, then check and verify the change. Covers RPent's design patterns (extension points, containment, daemon ownership, lazy imports, no unnecessary protection code), code conventions, offline CPU unit-test layout, license headers, and verification evidence. Use before adding or changing a planner, session, toolkit, robot adapter, evaluation hook, CLI/Dashboard path, or test, and to check or verify such a change.

28 other projects use a version of this, 1 of them edited.

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 4 mentionsOct 2026: 2 mentionsNov 2026: 1 mention
Dec 2025Jun 2026Nov 2026
Mentions a month of the RLinf/RPent repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about RLinf/RPent

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub (8 times).

On GitHub · 8

3 more on GitHub

Used with

Projects with it also use test, plan and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    test

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read patterns.md: its design philosophy first, then the Design, Code, and Tests patterns that apply to the change.

    line 23
  2. Very specific:

    Keep optional simulator, VLA, and hardware imports inside the function or branch that uses them so import rpent, enumerate_robots(), and …

    line 25
  3. Distinctive:

    Before you finish, go through mistakes.md, run the check below, and run the relevant unit tests.

    line 26
  4. Distinctive:

    Before opening a pull request, run the repository checks in an isolated environment (CONTRIBUTING.md, tests/README.md):

    line 57
  5. Distinctive:

    When reporting validation evidence:

    line 66
  6. Very specific:

    Keep bounded integration checks (action execution, recorded finish, saved artifacts, owned-daemon cleanup) distinct from native task …

    line 70

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code

RPent's design patterns live in patterns.md, and the rules CI and reviewers enforce live in AGENTS.md. This skill says what to read before changing code, checks the change afterwards, and guides test selection and verification. Robot integration contracts, packaging extras, and GPU e2e wiring belong to the robots skill, and docs and README highlights to the docs skill.

Write

  1. Find the closest current sibling on main and start from it (git log <base> -- <dir> shows which sibling is recent, so you follow current contracts rather than legacy code).
  2. Plug into the extension point the component kind already has (AGENTS.md § Extending RPent) instead of adding robot- or planner-name branches to shared code.
  3. Read patterns.md: its design philosophy first, then the Design, Code, and Tests patterns that apply to the change.
  4. Mirror the production module layout under tests/unit_tests/ (rpent/, robots/<robot>/, toolkits/, calibration_tools/, skills/), test through the public contract offline on CPU, and mock only external edges (tests/README.md).
  5. Keep optional simulator, VLA, and hardware imports inside the function or branch that uses them so import rpent, enumerate_robots(), and rpent --help work with no robot extra installed.
  6. Before you finish, go through mistakes.md, run the check below, and run the relevant unit tests.

Check

python3 .agents/skills/code/check.py              # files changed against main
python3 .agents/skills/code/check.py FILE ...

Findings use the shared format of README.md:

RuleSeverityReports
code/pre-commitmajorpre-commit run --files (or ruff fallback) fails: Ruff lint (--preview), format, and CPY001 headers. Ruff runs with --fix, so re-run after it rewrites a file.
code/initmajora directory with Python files under rpent/, robots/, or toolkits/ without __init__.py
code/licensemajor or minora new Python file without # Copyright <year> The RPent Authors. (major), or with a year other than the current one (minor)
code/test-layoutminora new test_*.py file placed directly under tests/unit_tests/ instead of a component subdirectory
code/shell-syntaxcriticala changed shell script that fails bash -n

Then judge what a script cannot decide, comparing every changed function against its version on main (mistakes.md lists the concrete forms):

  • Shared orchestration code (rpent/cli/, rpent/dashboard/, rpent/session/, rpent/tools/) gains no branch that names a specific robot or planner, and rpent/planner/ gains no robot-specific branch (patterns.md § Generalize; don't special-case, § Contain component code).
  • Each resource has one owner: owned daemons tear down on partial startup failure via rpent/robots/runtime.py, and borrowed external endpoints are never stopped (§ Small abstractions with one owner).
  • No protection code for states callers cannot produce, validation happens once at the owning boundary, and no product code is weakened with getattr/hasattr for incomplete mocks (§ No unnecessary protection code).
  • Behavior is preserved across affected planners (api, claude_code, codex, gemini_cli, flash), CLI and Dashboard entry points, and robots, or the difference is named, documented, and tested (§ Preserve behavior).
  • No new function, field, CLI flag, or prompt variable without a caller or consumer, and no drive-by edits outside the task scope.
  • Code conventions hold: rpent.utils.logging.get_logger() instead of print, type hints and Google-style docstrings on public APIs, short contract-focused comments, and error messages stating expected vs. found (§ Code).
  • Tests fail without the change, run offline on CPU, use real objects or local loopback transports, and never weaken assertions (§ Tests).

Verify

Before opening a pull request, run the repository checks in an isolated environment (CONTRIBUTING.md, tests/README.md):

pre-commit run --all-files
pytest tests/unit_tests -v

Inspect any files rewritten by hooks and re-run affected tests. Note that unittest.yml runs Python 3.10–3.12 plus opencv-python-headless and .[flywheel] dependencies; one local environment does not cover the whole matrix.

When reporting validation evidence:

  • Record the revision or working diff, exact commands, environment, results, artifact paths, and skipped checks with reasons.
  • Distinguish a failed check from unavailable prerequisites and from an untested path.
  • Keep bounded integration checks (action execution, recorded finish, saved artifacts, owned-daemon cleanup) distinct from native task success (terminated). Never infer task success from planner prose or a clean exit code.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.