agentleFS
fleslerflesler/scip-cli/.cursor/skills/test/SKILL.md

scip-cli-test

Skill4 starsChanged 2 months agoMITView on GitHub

Read when running or writing scip-cli tests (pytest, e2e, CI parity).

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Never: call reindex in e2e (mutates ~/.cache/scip-cli).

    line 26
  2. Very specific:

    Prefer fixture e2e for indexer-dependent behavior.

    line 38
  3. Very specific:

    Run e2e loop at minimum before commit.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

scip-cli tests

Repo root only. Bootstrap: .cursor/rules/agent.mdc (editable install, Node for fixture index).

Pick a suite

GoalCommand
Pre-commit / CI / publishscripts/test.sh
Fullpytest
CLI + fixture indexpytest tests/test_e2e.py tests/test_e2e_analyze_patterns.py
One class / testpytest tests/test_e2e.py::TestQuery -q
Analyze unit / graphpytest tests/test_analyze_graph.py tests/test_analyze.py
SQL perf (not correctness)scripts/bench.sh — see .cursor/skills/sql-bench/SKILL.md

scripts/test.sh uses .venv/bin/{ruff,basedpyright,pytest}; create venv + pip install -e ".[dev]" if missing.

E2e rules

  • In-process only: tests/e2e_harness.py (CliRunner, run_cli) patches scip_cli.commands.<cmd>.setup — never subprocess scip-cli in tests.
  • Never call reindex in e2e (mutates ~/.cache/scip-cli).
  • Session fixture indexed_fixture indexes tests/fixtures/typescript-project/ once (real scip-typescript).
  • Stable symbols/paths: add constants to tests/fixture_catalog.py; import in tests — do not hardcode fixture paths in test bodies.
  • New CLI command: append scip_cli.commands.<cmd>.setup to COMMAND_SETUP_PATHS in e2e_harness.py.

Fixture vs in-memory DB

NeedLayer
SCIP symbol shapes, analyze false positives, CLI outputFixture e2e (test_e2e*.py)
Tarjan, section wiring, one-off SQL plumbingtests/analyze_db.py + test_analyze_graph.py

Prefer fixture e2e for indexer-dependent behavior. Details: agent.mdc § TDD.

After command / flag changes

Run e2e loop at minimum before commit; scripts/test.sh before push.

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.