nexent: Skill for Claude Code

.agents/skills/nexent-python-tests/SKILL.md

nexent-python-tests is a skill for Claude Code, Codex from ModelEngine-Group/nexent. It costs 66 tokens per session (860 once invoked), scanned A, original, MIT.

A set of rules for writing, debugging, and reviewing Nexent’s Python unit tests. It uses pytest, a Python testing tool, and covers fixtures, mocks, asynchronous code, isolation, and regression checks.

In plain words
What is it for?
Use it to add or update tests under Nexent’s Python test directories, mock external collaborators, test asynchronous behavior, and check that previous bugs stay fixed.
Why use it?
It helps keep tests focused on one unit instead of calling real services or APIs. It also reduces errors from patching the wrong import or leaving shared state between tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is ModelEngine-Group/nexent's own configuration. It tells Claude Code and Codex how to work on nexent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nexent configures →

About the project

Nexent is a zero-code platform for creating AI agents from natural-language instructions, combining tools, skills, memory, orchestration, constraints, feedback loops, and control planes. It is intended for people who need to build and deploy agents without writing orchestration code. The catalogue entries are rules and skills for working with Nexent.

ModelEngine-Group/nexent · 6,064 stars · on GitHub · modelengine-group.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to ModelEngine-Group/nexent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ModelEngine-Group/nexent/develop/.agents/skills/nexent-python-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/nexent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nexent-python-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/modelengine-group/nexent/nexent-python-tests/github.svg)](https://agentmods.dev/skills/modelengine-group/nexent/nexent-python-tests)
Your own site
<a href="https://agentmods.dev/skills/modelengine-group/nexent/nexent-python-tests"><img src="https://agentmods.dev/badge/skills/modelengine-group/nexent/nexent-python-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nexent-python-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/modelengine-group/nexent/nexent-python-tests"><img src="https://agentmods.dev/badge/skills/modelengine-group/nexent/nexent-python-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 860 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00860
Opus 5.5 $0.00026 $0.00344
Sonnet 5.5 $0.00013 $0.00172
Haiku 4.5 $0.00007 $0.00086

Measured 16d ago against content hash 70f59eaf51f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nexent-python-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/nexent-python-tests/SKILL.md · 28 lines

How it starts

The opening of the file, as written. The whole thing — 28 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nexent traditional Python unit tests

Paths below are relative to the repository root.

These tests are a permanently maintained suite kept separate from the requirement-driven D1-D5 system. Historical documents may call it Legacy UT; that does not mean planned removal. Do not assign formal D1-D5 Case IDs to UT, bind it under test-e2e/cases/, or count it in the generated functional baseline. Use nexent-test-assets for formal Cases.

Isolated validation, arithmetic, local branches and error conversion belong primarily here, including when adding tests after code is already developed. Read existing inputs/assertions before adding another test; reuse adequate coverage or strengthen missing variants in its owning suite. Do not copy/wrap UT as formal D1 solely for a Feature link, Case count or report entry. New formal D1 requires distinct component-contract evidence with real internal collaboration through nexent-test-assets; an API/runtime boundary may legitimately verify the same rule again. Preserve existing D1 rather than bulk deleting or relabeling overlaps. For formal test backfill, use nexent-test-assets' test-backfill mode; UT results remain separate.

For every product-code change, assess applicable unit behavior and document reuse, strengthen, add or a justified non-behavior exemption. New or changed behavior requires success, boundary and error coverage. Bugfixes require a regression assertion that detects the defect; demonstrate failure before the fix where feasible. Existing adequate coverage may be reused without artificial file edits. Derive expected behavior from requirements/contracts, not merely the implementation. Relevant local UT verification is mandatory before a product-code PR; CI independently runs its configured UT set. Failures, collection errors and unavailable execution are not passes. UT does not replace required component/API/runtime/journey/risk acceptance.

  1. Identify the unit and behavior. Inspect neighboring tests, test/conftest.py, and test/pytest.ini before changing fixture/import setup.
  2. Use pytest exclusively, pytest assertions, fixtures, and pytest-mock. Files/functions start with test_; test classes start with Test. Keep files below 500 lines or split by feature using test_<module>_<feature>.py; split package directories include __init__.py.
  3. Import the unit and necessary test helpers. Mock collaborators rather than exercising external interfaces/clients/services. Patch the fully qualified lookup site determined from actual imports, not the dependency's definition module.

For example, if backend.services.example_service imports fetch using from provider import fetch, patch backend.services.example_service.fetch. If the runtime loads the module as services.example_service, use that actual path. Do not copy an unrelated service path from an example.

  1. Isolate external I/O and APIs. Reset mutable state with fixtures; use autouse=True when every test in a scope requires it. Do not mock away the behavior being asserted.
  2. Cover changed success/error flows and boundaries with specific observable assertions. Use side_effect for collaborator errors, @pytest.mark.parametrize for variants, and @pytest.mark.asyncio for async tests. Async collaborators need awaitable mocks.
  3. Order imports as standard library, third-party, then project; write comments/docstrings in English.
  4. Run narrow tests from the root with a working backend environment, such as pytest test/backend/apps/test_agent_app.py -v. Broaden when needed; python test/run_all_test.py is the existing broad runner.

Report commands, selected tests, results, reuse rationale and environment blockers in the change's verification record, separately from formal Case IDs. Do not recreate the complete historical suite for each change. Python coverage uses backend/sdk; frontend coverage remains separate. Do not impose a new threshold or edit CI from this skill without authorization. Unit-test isolation does not replace live-service functional checks or real-model acceptance.

Read the full file on GitHub · 28 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +4 lines · -3 tokens per session 70f59eaf51f7
  2. 1mo ago Changed · +2 lines · +8 tokens per session b7499e0621c1
  3. 1mo ago First seen · 22 lines · 61 tokens per session scan A 8d1b4309910c

Subscribe to this mod's changes

nexent-python-tests is a skill published in the GitHub repository ModelEngine-Group/nexent (6,064 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 860 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.