skene-best-practices

skene-best-practices is a cursor rule for Cursor from SkeneTechnologies/skene. It costs 889 tokens per session, scanned A, original, MIT.

A set of rules for building product-led growth features with Skene. Product-led growth means using the product itself to attract, activate, and retain users.

In plain words
What is it for?
Use it to guide Skene commands, handle routine command-line prompts, report exact errors, and keep communication short while implementing growth features.
Why use it?
It keeps Skene tasks autonomous, follows the Skene command-line tool as the source of truth, and prevents the agent from replacing failed tool output with guesses.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to guide Skene commands, handle routine command-line prompts, report exact errors, and keep communication short while implementing growth features.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/skenetechnologies/skene/skene-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/SkeneTechnologies/skene

Made for: Cursor.

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 skene-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/rules/skenetechnologies/skene/skene-best-practices/github.svg)](https://agentmods.dev/rules/skenetechnologies/skene/skene-best-practices)
Your own site
<a href="https://agentmods.dev/rules/skenetechnologies/skene/skene-best-practices"><img src="https://agentmods.dev/badge/rules/skenetechnologies/skene/skene-best-practices/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 skene-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/rules/skenetechnologies/skene/skene-best-practices"><img src="https://agentmods.dev/badge/rules/skenetechnologies/skene/skene-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 889 This file is loaded in full into every session.
When invoked 889 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00889 $0.00889
Opus 5 $0.00445 $0.00445
Sonnet 5 $0.00178 $0.00178
Haiku 4.5 $0.00089 $0.00089

Measured 10d ago against content hash 32506ce37b79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

skene-best-practices scanned grade A with 1 finding 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 10d 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.

Asks the agent to reveal its instructionslowSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

- For CLI menus (e.g. "Select option [1/2/3/4]"): pipe the best option for agent use. For `uvx skene build`, always pipe `3` ("Show full prompt") so the agent gets the full text: `echo 3 | uvx skene build`.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

cursor-plugin/rules/skene-best-practices.mdc · 63 lines

What it actually says

skene-plg-best-practices:

Skene agent behavior (always follow, applies to ALL commands and skills):

Autonomy:

  • Every Skene command should run autonomously end-to-end. The user runs a slash command and gets a short result. No mid-flow questions unless there is a genuine blocker.
  • "Genuine blocker" = something the agent cannot infer, fix, or default (e.g. API key missing everywhere, destructive action like applying database migrations). Everything else the agent handles silently.
  • When the agent encounters a CLI prompt (e.g. "Do you want to edit? [y/n]"), it decides the safe default and pipes it. It does NOT surface routine CLI prompts to the user.

Communication:

  • One-line status + next command. No explanations, no PLG lectures, no preambles.
  • Example: "Skene init complete. Provider: gemini, model: gemini-2.5-flash. Run /skene-analyze next."

CLI is the source of truth:

  • The Skene CLI (uvx skene) produces all analysis, plans, and implementation data.
  • If a CLI command fails, report the exact error and suggest a fix. Do NOT substitute your own PLG analysis, growth loops, tech stack guesses, or implementation plans.
  • Only present data that came from CLI output or .skene/ files.

CLI discovery (important):

  • Do NOT hardcode CLI flags or assume which options exist. The CLI evolves.
  • Before running any uvx skene <subcommand> for the first time in a session, run uvx skene <subcommand> --help to discover the actual available options.
  • Choose the appropriate flags based on the --help output. If a flag doesn't appear in --help, do not use it.
  • Cache the --help output mentally for the session — no need to re-run it every time.

Terminal rules:

  • The user CANNOT type into agent-spawned terminals. The agent handles ALL terminal input.
  • For CLI prompts the agent can answer: pipe the answer automatically (e.g. echo n | uvx skene config --show).
  • For CLI menus (e.g. "Select option [1/2/3/4]"): pipe the best option for agent use. For uvx skene build, always pipe 3 ("Show full prompt") so the agent gets the full text: echo 3 | uvx skene build.
  • For CLI prompts that represent a genuine user decision (e.g. "apply database migrations?"): ask the user in chat, get their answer, then pipe it.
  • uvx skene config (no flags): NEVER run — multi-step interactive. Detect/infer settings and write .skene.config directly.
  • Stuck terminal: kill the process (pid from terminal file header), re-run with piped input.

Error handling:

  • Permission errors ("Operation not permitted"): Do NOT retry. Tell the user the exact command to run in their own terminal (outside agent).
  • API quota/billing (429): Report error, tell user to check billing. Do NOT fall back to own analysis.
  • API key missing: Tell user to set SKENE_API_KEY, then re-run the command.

Phase guidance:

  • After each step, state the next command. Sequence: /skene-init/skene-analyze/skene-plan/skene-build/skene-status/skene-deploy.

When implementing growth loops or PLG features:

Analytics and Telemetry:

  • Implement telemetry BEFORE the feature goes live.
  • Event naming: {object}_{action} (e.g. user_signed_up, invite_sent).
  • Include user_id, timestamp, and relevant properties.
  • Never track PII without explicit consent.

Code Organization:

  • Growth code in dedicated modules (growth/, analytics/, telemetry/).
  • Feature flags for A/B testing.
  • Integration tests for critical paths (signup → activation → conversion).

Compliance:

  • GDPR: consent management for EU users.
  • CCPA: opt-out for California users.
  • Allow users to disable tracking entirely.
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. 10d ago First seen · 63 lines · 889 tokens per session scan A 32506ce37b79

Subscribe to this mod's changes

skene-best-practices is a cursor rule published in the GitHub repository SkeneTechnologies/skene (123 stars, last pushed 6d ago), licensed MIT. It adds 889 tokens to every session, about $0.0044 per session on Opus 5. A static security scan graded it A with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.