indexer-cli 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,10 +13,6 @@ function renderSkill(definition) {
13
13
  "",
14
14
  definition.purpose,
15
15
  "",
16
- "## Auto-load when",
17
- "",
18
- ...definition.autoLoadWhen.map((item) => `- ${item}`),
19
- "",
20
16
  "## Rules",
21
17
  "",
22
18
  ...definition.rules.map((item) => `- ${item}`),
@@ -34,15 +30,10 @@ const SKILL_DEFINITIONS = [
34
30
  {
35
31
  name: "semantic-search",
36
32
  directory: "semantic-search",
37
- description: "Use for semantic implementation search in this repository with npx indexer-cli search before opening many files.",
33
+ description: "Use when you know the behavior or concept to find but not the file, and want ranked implementation candidates.",
38
34
  heading: "Use semantic-search for implementation hunting",
39
35
  purpose: "Use this when the agent already knows it needs semantic search results, not a tree or architecture map. Keep the prompt short and centered on the code concept to find.",
40
36
  allowedTools: ["Bash(npx indexer-cli search:*)"],
41
- autoLoadWhen: [
42
- "Find where a feature, function, handler, or pattern is implemented",
43
- "Search for examples of a concept across the repo",
44
- "Narrow discovery by path, chunk type, score, or fields",
45
- ],
46
37
  rules: [
47
38
  "Start with npx indexer-cli search instead of grep when the request is semantic or concept-based.",
48
39
  "Prefer compact JSON fields first; include content only after the right chunk is found.",
@@ -65,15 +56,10 @@ const SKILL_DEFINITIONS = [
65
56
  {
66
57
  name: "repo-structure",
67
58
  directory: "repo-structure",
68
- description: "Use for file-tree and symbol-map questions in this repository with npx indexer-cli structure.",
59
+ description: "Use when you need the file-and-symbol layout of a directory or subsystem before reading implementation details.",
69
60
  heading: "Use repo-structure for tree and symbol-map questions",
70
61
  purpose: "Use this when the agent needs to see how files and symbols are organized in an area of the repo before reading implementation details.",
71
62
  allowedTools: ["Bash(npx indexer-cli structure:*)"],
72
- autoLoadWhen: [
73
- "Show the file tree for a module or directory",
74
- "List symbols by area or symbol kind",
75
- "Limit structure output to a path prefix or max depth",
76
- ],
77
63
  rules: [
78
64
  "Prefer structure when layout matters more than implementation snippets.",
79
65
  "Use --path-prefix and --kind to keep output focused.",
@@ -95,15 +81,10 @@ const SKILL_DEFINITIONS = [
95
81
  {
96
82
  name: "repo-architecture",
97
83
  directory: "repo-architecture",
98
- description: "Use for entry points, dependency graphs, and module-level architecture questions with npx indexer-cli architecture.",
84
+ description: "Use when you need a high-level view of entry points, modules, and cross-module dependencies in a subsystem or repo.",
99
85
  heading: "Use repo-architecture for dependency-graph questions",
100
86
  purpose: "Use this when the agent needs a high-level snapshot of modules, entry points, and dependency shape before going deeper.",
101
87
  allowedTools: ["Bash(npx indexer-cli architecture:*)"],
102
- autoLoadWhen: [
103
- "Identify entry points or major modules",
104
- "Inspect dependency-map shape across an area of the repo",
105
- "Understand architecture before refactoring or large changes",
106
- ],
107
88
  rules: [
108
89
  "Use architecture when the question is about system shape, not a single symbol.",
109
90
  "Filter by path prefix when only one subsystem matters.",
@@ -121,15 +102,10 @@ const SKILL_DEFINITIONS = [
121
102
  {
122
103
  name: "repo-context",
123
104
  directory: "repo-context",
124
- description: "Use for dense, token-efficient project summaries with npx indexer-cli context.",
105
+ description: "Use when you need a compact summary of the whole repo, current changes, or one area without opening many files.",
125
106
  heading: "Use repo-context for dense summaries",
126
107
  purpose: "Use this when the agent wants a compressed view of a subsystem, changed area, or dependency neighborhood without opening many files.",
127
108
  allowedTools: ["Bash(npx indexer-cli context:*)"],
128
- autoLoadWhen: [
129
- "Summarize the current project or a changed area",
130
- "Collect context relevant to one path before editing",
131
- "Get dependency-limited snapshots for prompt building",
132
- ],
133
109
  rules: [
134
110
  "Prefer context when you want breadth over exact source snippets.",
135
111
  "Use --scope to target all, changed, or relevant-to:<path>.",
@@ -149,15 +125,10 @@ const SKILL_DEFINITIONS = [
149
125
  {
150
126
  name: "symbol-explain",
151
127
  directory: "symbol-explain",
152
- description: "Use for one-symbol understanding with npx indexer-cli explain <symbol>.",
128
+ description: "Use when the symbol name is already known and you need its signature, module context, and callers fast.",
153
129
  heading: "Use symbol-explain for one symbol at a time",
154
130
  purpose: "Use this when the task centers on one function, class, type, or symbol and the agent needs signature, usage, and containing module context fast.",
155
131
  allowedTools: ["Bash(npx indexer-cli explain:*)"],
156
- autoLoadWhen: [
157
- "Understand what one symbol does",
158
- "Inspect the signature and callers of one function or class",
159
- "Get targeted context before editing a known symbol",
160
- ],
161
132
  rules: [
162
133
  "Use explain only when the symbol name is already known.",
163
134
  "Do not use this skill for symbol discovery; use it only once the symbol name is already known.",
@@ -172,15 +143,10 @@ const SKILL_DEFINITIONS = [
172
143
  {
173
144
  name: "dependency-trace",
174
145
  directory: "dependency-trace",
175
- description: "Use for caller/callee and impact-trace questions with npx indexer-cli deps <path>.",
146
+ description: "Use when you already know the file or module to trace and need callers, callees, or likely change impact.",
176
147
  heading: "Use dependency-trace for impact analysis",
177
148
  purpose: "Use this when the agent needs to know who imports a module, what it imports, or how far change impact may spread.",
178
149
  allowedTools: ["Bash(npx indexer-cli deps:*)"],
179
- autoLoadWhen: [
180
- "Trace callers or callees for a module or symbol",
181
- "Estimate change impact before refactoring",
182
- "Follow dependency chains in one direction or both",
183
- ],
184
150
  rules: [
185
151
  "Use deps when the question is about relationships, not source snippets.",
186
152
  "Set --direction callers or --direction callees when only one side matters.",
@@ -1 +1 @@
1
- {"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../src/cli/commands/skills.ts"],"names":[],"mappings":";;;AAcA,SAAS,WAAW,CAAC,UAA2B;IAC/C,MAAM,QAAQ,GAAG;QAChB,KAAK;QACL,SAAS,UAAU,CAAC,IAAI,EAAE;QAC1B,gBAAgB,UAAU,CAAC,WAAW,EAAE;QACxC,kBAAkB,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACtD,KAAK;QACL,EAAE;QACF,KAAK,UAAU,CAAC,OAAO,EAAE;QACzB,EAAE;QACF,UAAU,CAAC,OAAO;QAClB,EAAE;QACF,mBAAmB;QACnB,EAAE;QACF,GAAG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;QAC5G,OAAO,EAAE,0CAA0C;QACnD,OAAO,EACN,mHAAmH;QACpH,YAAY,EAAE,CAAC,8BAA8B,CAAC;QAC9C,KAAK,EAAE;YACN,yEAAyE;YACzE,4EAA4E;YAC5E,uDAAuD;SACvD;QACD,QAAQ,EAAE;YACT,kEAAkE;YAClE,iDAAiD;SACjD;QACD,aAAa,EAAE;YACd,6BAA6B;YAC7B,iDAAiD;YACjD,iDAAiD;SACjD;QACD,KAAK,EAAE,CAAC,mDAAmD,CAAC;KAC5D;CACD,CAAC;AAQW,QAAA,gBAAgB,GAAqB,iBAAiB,CAAC,GAAG,CACtE,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC,IAAI;IACrB,SAAS,EAAE,UAAU,CAAC,SAAS;IAC/B,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC;CAChC,CAAC,CACF,CAAC;AAEW,QAAA,2BAA2B,GAAG,wBAAgB,CAAC,GAAG,CAC9D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAC1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indexer-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Lightweight CLI project indexer with semantic search via Ollama",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",