agentleFS
DataArtDataArt/artisyn-log-hub/.claude/skills/ce/SKILL.md

ce

Skill12 starsChanged 8 days agoMITView on GitHub

ALWAYS before answering a structural question about server/, hook/ or packages/ code with grep — who calls a function or method, which controller serves an HTTP route, what a module depends on, impact of changing a function. Uses the CodeExplorer (`ce`) code graph, where it was measured to beat grep; skip it only for client React components, text/string search and docs.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always wrap it in timeout: ce 1.48.6 once hung forever at "PostIndexAnalyzer: Normalizing architectural edges" (with .claude/ fixtures …

    line 29
  2. Distinctive:

    Treat results as a lead, not proof: when completeness matters (renames, removing a function), confirm with grep — ce can miss call sites.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

ce — CodeExplorer code graph

ce (a dotnet global tool, ce help) indexes the repo into a graph (functions, types, endpoints, calls, projects) under .codeexplorer/. If ce is not on PATH, skip this skill silently and use grep.

Rule: for a structural question in server/, hook/ or packages/ (callers, route → controller, dependencies, blast radius of a change) the first query is ce, not grep and not reading files one by one. Grep afterwards only to confirm completeness (renames, deletions) or for the cases listed under "Do NOT use ce". This applies to subagents and Explore agents too — put the rule into their prompt when you delegate code research.

Setup / refresh

  • Workspace is already initialised in the repo root (.codeexplorer/settings.json holds the excludes; the DB graph.db is ignored by .codeexplorer/.gitignore). On a fresh clone without it: ce init loghub, then copy the excludes below.
  • /adlc-lh:implement and /adlc-lh:implement-deep refresh the index once at their start (.claude/repo_config/project-env.json → preImplCommand).
  • Otherwise the index does not auto-update. Before the first ce query in a session (and after you changed the files you are about to query — through Edit or through Bash) refresh it manually — a full rescan takes ~20 s: timeout 180 ce scan --clear > /dev/null 2>&1 Always wrap it in timeout: ce 1.48.6 once hung forever at "PostIndexAnalyzer: Normalizing architectural edges" (with .claude/ fixtures indexed).
  • Excludes (.codeexplorer/settings.json → exclude): .claude/**, .artisyn/**, artisyn-hooks-installer/**, dist/**, tmp/**, docs/** — otherwise skill fixtures (C#/Java sample projects) and the dogfooded hook copy pollute results with duplicates.

Use ce for (measured: better than grep)

QuestionCommand
Which controller/file serves route Xce search "auth identify" -k Endpoint — resolves the global /api/v1 prefix, returns POST:/api/v1/auth/identify → server/src/auth/auth.controller.ts
Who calls server method X (NestJS DI this.service.x())ce callers validateUser — returns the calling method (AuthController.signup), not just a line
Who calls a plain function across server/hook/packagesce callers normalizeToolName (--tests to include tests)
Ad-hoc structural questionsce query "<cypher>" --no-truncate (schema: ce help)
Project mapce status

Do NOT use ce for (measured: worse than grep)

  • Client React components — many export function X({...}) components are not indexed at all and JSX usage <X/> / lazy(() => import(...)) is not a call: ce callers RepoToolsTab returns nothing while it is used in two places. Use grep.
  • Literal strings, config keys, SQL text, comments, docs — grep.
  • ce contracts — hung > 60 s on this repo; don't use.

Caveats when reading results

  • callers matches by name across projects: functions with the same name in different places (e.g. the hook's plain-JS copy vs packages/tool-monitor) are merged. Check the project column / path before trusting it.
  • The Location line in callers is the start of the calling function, not the call site.
  • Treat results as a lead, not proof: when completeness matters (renames, removing a function), confirm with grep — ce can miss call sites.

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.