skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
keyvaluesoftwaresystems/netra-skills109 installs

netra-best-practices

Code-first Netra best-practices playbook covering setup, instrumentation, context tracking, custom spans/metrics, integration patterns, evaluation, simulation, and troubleshooting.

How do I install this agent skill?

npx skills add https://github.com/keyvaluesoftwaresystems/netra-skills --skill netra-best-practices
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides comprehensive best practices and implementation guides for the Netra SDK in Python and TypeScript. It includes instructions for installation, instrumentation, evaluation, and simulation. All external references and package installations target the official Netra domain and package registry, posing no security risks.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

Netra Best Practices

Use this skill as the end-to-end guide for integrating, operating, and improving AI systems with Netra.

Step 1 — Detect Project Language

Before doing anything else, determine whether the project is Python or TypeScript/JavaScript. Check the project root in this order:

Signal fileLanguage
pyproject.toml, setup.py, requirements.txt, PipfilePython
package.json, tsconfig.json, bun.lockbTypeScript / JavaScript

If both are present (monorepo), ask the user which sub-project they are working on. If neither is found, ask the user.

From this point forward, use ONLY the references for the detected language. Never mix Python and TypeScript patterns.

Step 2 — Installation

Detect the package manager before installing netra-sdk. Check in priority order:

PrioritySignal fileCommand
1uv.lockuv add netra-sdk
2poetry.lockpoetry add netra-sdk
3pyproject.toml (no lock file above)pip install netra-sdk
4requirements.txt (no Python indicators above)pip install netra-sdk
5yarn.lockyarn add netra-sdk
6pnpm-lock.yamlpnpm add netra-sdk
7package-lock.jsonnpm install netra-sdk
8bun.lockbbun add netra-sdk
9None foundAsk the user before proceeding

Do NOT run multiple install commands or install globally.

Step 3 — Load the Right References

Based on the detected language and the user's use case, read the appropriate reference files:

Python references (under references/python/)

Use caseReference file
Instrumenting an LLM applicationpython/instrumentation.md
Running evaluations / test suitespython/evaluation.md
Running multi-turn simulationspython/simulation.md
Custom metrics (counters, histograms, gauges)python/custom-metrics.md

TypeScript references (under references/typescript/)

Use caseReference file
Instrumenting an LLM applicationtypescript/instrumentation.md
Running evaluations / test suitestypescript/evaluation.md
Running multi-turn simulationstypescript/simulation.md
Custom metrics (Currently not supported for TS)typescript/custom-metrics.md

Step 4 — Anti-Hallucination Rules

Follow these rules strictly when generating Netra code:

  1. NEVER use enum values not listed in the Netra's official documentation. Do not guess.

  2. NEVER mix Python and TypeScript conventions. Specifically:

    • Python uses snake_case parameters (as_type, module_name, app_name)
    • TypeScript uses camelCase parameters (asType, moduleName, appName)
    • Python instrument sets: {InstrumentSet.OPENAI} (plain set literal)
    • TypeScript instrument sets: new Set([NetraInstruments.OPENAI]) (Set constructor)
  3. Respect lifecycle differences:

    • Python: Netra.init(...) is synchronous
    • TypeScript: await Netra.init(...) is asynchronous — always await it
    • Python: with Netra.start_span(...) as span: auto-closes
    • TypeScript: span.end() must be called manually in finally
  4. When unsure about an API, follow the doc-fetching protocol below rather than guessing.

Step 5 — Doc-Fetching Fallback

If a use case is not covered by the reference files:

  1. Fetch the documentation index: https://docs.getnetra.ai/llms.txt
  2. Identify the relevant documentation page from the index.
  3. Fetch that page for the detailed guide.

Feedback

If the user is unhappy with the results, ask them to open an issue at https://github.com/KeyValueSoftwareSystems/netra-skills/issues/new.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/keyvaluesoftwaresystems/netra-skills/netra-best-practices">View netra-best-practices on skillZs</a>