scan

Solid

Scan project once per session. Run first — all other skills depend on this.

AI & Automation 22 stars 5 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /supergraph:scan Load verified, project-scoped graph context once. Follow the shared `references/codebase-memory-contract.md`. Announce: "📡 /supergraph:scan — loading project context..." ## 1. Detect project and branch Use `git branch --show-current`, resolve the repository to an **absolute** path, and run `bin/detect-project.sh` when present. Otherwise detect commands from: | File | Type | Test | Lint | Format | Build | |---|---|---|---|---|---| | `package.json` | node | `npm test --` | `npx eslint .` | `npx prettier --write .` | `npm run build` | | `Cargo.toml` | rust | `cargo test` | `cargo clippy` | `cargo fmt` | `cargo build` | | `pyproject.toml` | python | `pytest` | `ruff check .` | `ruff format .` | `python -m build` | | `go.mod` | go | `go test ./...` | `golangci-lint run` | `gofmt -w .` | `go build ./...` | | `pubspec.yaml` | flutter | `flutter test` | `flutter analyze` | `dart format .` | `flutter build` | Ask when none match; never guess commands. Derive one stable `CBM_PROJECT` from the repository root name and retain it across branches. Default `CBM_INDEX_MODE=moderate`. ## 2. Verify provider and freshness 1. Call `list_projects` and find `CBM_PROJECT`. 2. If found, call `index_status(project=CBM_PROJECT)`. 3. Treat missing project, changed branch, stale state, tool error, failed state, or `status: "degraded"` as requiring a new index. 4. **TTL reuse (10m):** If `index_status` returns `status: "ready"` and `BRANCH` matches `.supergraph-env:BRANCH` ...

Details

Author
datit309
Repository
datit309/supergraph
Created
4 months ago
Last Updated
6 days ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category