scip-cli-test
Skill4 starsChanged 2 months agoMITView on GitHub
Read when running or writing scip-cli tests (pytest, e2e, CI parity).
- Installs packages
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/agent.mdcCursor rule
- scip-cli-new-commandSkill
- scip-cli-sql-benchSkill
- scip-cliSkill
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
- Very specific: line 26
Never: call reindex in e2e (mutates ~/.cache/scip-cli).
- Very specific: line 38
Prefer fixture e2e for indexer-dependent behavior.
- Very specific: line 42
Run e2e loop at minimum before commit.
≈ “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.
Files
scip-cli tests
Repo root only. Bootstrap: .cursor/rules/agent.mdc (editable install, Node for fixture index).
Pick a suite
| Goal | Command |
| Pre-commit / CI / publish | scripts/test.sh |
| Full | pytest |
| CLI + fixture index | pytest tests/test_e2e.py tests/test_e2e_analyze_patterns.py |
| One class / test | pytest tests/test_e2e.py::TestQuery -q |
| Analyze unit / graph | pytest 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) patchesscip_cli.commands.<cmd>.setup— never subprocessscip-cliin tests. - Never call
reindexin e2e (mutates~/.cache/scip-cli). - Session fixture
indexed_fixtureindexestests/fixtures/typescript-project/once (realscip-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>.setuptoCOMMAND_SETUP_PATHSine2e_harness.py.
Fixture vs in-memory DB
| Need | Layer |
| SCIP symbol shapes, analyze false positives, CLI output | Fixture e2e (test_e2e*.py) |
| Tarjan, section wiring, one-off SQL plumbing | tests/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.
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
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.

