skill-lens-cli 0.1.0__py3-none-any.whl
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.
- skill_lens/__init__.py +3 -0
- skill_lens/cli.py +326 -0
- skill_lens/core/__init__.py +1 -0
- skill_lens/core/compare.py +172 -0
- skill_lens/core/diff.py +503 -0
- skill_lens/core/discovery.py +562 -0
- skill_lens/core/doctor.py +464 -0
- skill_lens/core/exitcodes.py +151 -0
- skill_lens/core/hasher.py +117 -0
- skill_lens/core/parser.py +311 -0
- skill_lens/core/paths.py +130 -0
- skill_lens/core/resolver.py +607 -0
- skill_lens/core/scanner.py +230 -0
- skill_lens/core/system.py +96 -0
- skill_lens/models/__init__.py +73 -0
- skill_lens/models/compare.py +104 -0
- skill_lens/models/diff.py +231 -0
- skill_lens/models/doctor.py +98 -0
- skill_lens/models/enums.py +84 -0
- skill_lens/models/installation.py +74 -0
- skill_lens/models/parsing.py +105 -0
- skill_lens/models/resolution.py +108 -0
- skill_lens/py.typed +0 -0
- skill_lens/registry/__init__.py +14 -0
- skill_lens/registry/agents/antigravity.toml +50 -0
- skill_lens/registry/agents/claude.toml +34 -0
- skill_lens/registry/agents/codex.toml +64 -0
- skill_lens/registry/agents/dsh.toml +93 -0
- skill_lens/registry/agents/grok.toml +37 -0
- skill_lens/registry/agents/omp.toml +84 -0
- skill_lens/registry/agents/opencode.toml +48 -0
- skill_lens/registry/agents/pi.toml +48 -0
- skill_lens/registry/agents/qoder.toml +38 -0
- skill_lens/registry/agents/windsurf.toml +38 -0
- skill_lens/registry/loader.py +128 -0
- skill_lens/render.py +464 -0
- skill_lens_cli-0.1.0.dist-info/METADATA +296 -0
- skill_lens_cli-0.1.0.dist-info/RECORD +41 -0
- skill_lens_cli-0.1.0.dist-info/WHEEL +4 -0
- skill_lens_cli-0.1.0.dist-info/entry_points.txt +2 -0
- skill_lens_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""The runtime side of the model: how a skill resolves for one agent + cwd."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass, field
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from skill_lens.models.enums import (
|
|
9
|
+
Collision,
|
|
10
|
+
Evidence,
|
|
11
|
+
HeadlineState,
|
|
12
|
+
Visibility,
|
|
13
|
+
)
|
|
14
|
+
from skill_lens.models.installation import SkillInstallation
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@dataclass(frozen=True, slots=True)
|
|
18
|
+
class CandidateResolution:
|
|
19
|
+
"""One installation evaluated along the 3 axes for a specific agent.
|
|
20
|
+
|
|
21
|
+
``rule_id`` and ``evidence`` make every reason machine-checkable and
|
|
22
|
+
provenance-tagged (no hallucinated precedence claims).
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
state: HeadlineState
|
|
26
|
+
visibility: Visibility
|
|
27
|
+
collision: Collision
|
|
28
|
+
rule_id: str
|
|
29
|
+
evidence: Evidence
|
|
30
|
+
reason: str
|
|
31
|
+
rank: int
|
|
32
|
+
installation: SkillInstallation
|
|
33
|
+
|
|
34
|
+
def to_dict(self) -> dict[str, Any]:
|
|
35
|
+
return {
|
|
36
|
+
"state": self.state.value,
|
|
37
|
+
"visibility": self.visibility.value,
|
|
38
|
+
"collision": self.collision.value,
|
|
39
|
+
"rule_id": self.rule_id,
|
|
40
|
+
"evidence": self.evidence.value,
|
|
41
|
+
"reason": self.reason,
|
|
42
|
+
"rank": self.rank,
|
|
43
|
+
"installation": self.installation.to_dict(),
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls, data: dict[str, Any]) -> CandidateResolution:
|
|
48
|
+
return cls(
|
|
49
|
+
state=HeadlineState(data["state"]),
|
|
50
|
+
visibility=Visibility(data["visibility"]),
|
|
51
|
+
collision=Collision(data["collision"]),
|
|
52
|
+
rule_id=data["rule_id"],
|
|
53
|
+
evidence=Evidence(data["evidence"]),
|
|
54
|
+
reason=data["reason"],
|
|
55
|
+
rank=int(data["rank"]),
|
|
56
|
+
installation=SkillInstallation.from_dict(data["installation"]),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@dataclass(frozen=True, slots=True)
|
|
61
|
+
class ResolutionReport:
|
|
62
|
+
"""Full resolution answer for one skill name, one agent, one working dir.
|
|
63
|
+
|
|
64
|
+
``found`` separates the two very different situations that both produce an
|
|
65
|
+
``UNSEARCHED`` headline: ``found=False`` means *no copy of this name exists
|
|
66
|
+
anywhere on disk*, while ``found=True`` with ``UNSEARCHED`` means the copy
|
|
67
|
+
exists but this agent's search rules never look there.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
skill_name: str
|
|
71
|
+
agent: str
|
|
72
|
+
agent_name: str
|
|
73
|
+
cwd: str
|
|
74
|
+
collision_policy: str
|
|
75
|
+
policy_evidence: Evidence
|
|
76
|
+
headline: HeadlineState
|
|
77
|
+
candidates: tuple[CandidateResolution, ...] = field(default_factory=tuple)
|
|
78
|
+
notes: tuple[str, ...] = field(default_factory=tuple)
|
|
79
|
+
found: bool = True
|
|
80
|
+
|
|
81
|
+
def to_dict(self) -> dict[str, Any]:
|
|
82
|
+
return {
|
|
83
|
+
"skill_name": self.skill_name,
|
|
84
|
+
"agent": self.agent,
|
|
85
|
+
"agent_name": self.agent_name,
|
|
86
|
+
"cwd": self.cwd,
|
|
87
|
+
"collision_policy": self.collision_policy,
|
|
88
|
+
"policy_evidence": self.policy_evidence.value,
|
|
89
|
+
"headline": self.headline.value,
|
|
90
|
+
"found": self.found,
|
|
91
|
+
"candidates": [c.to_dict() for c in self.candidates],
|
|
92
|
+
"notes": list(self.notes),
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@classmethod
|
|
96
|
+
def from_dict(cls, data: dict[str, Any]) -> ResolutionReport:
|
|
97
|
+
return cls(
|
|
98
|
+
skill_name=data["skill_name"],
|
|
99
|
+
agent=data["agent"],
|
|
100
|
+
agent_name=data["agent_name"],
|
|
101
|
+
cwd=data["cwd"],
|
|
102
|
+
collision_policy=data["collision_policy"],
|
|
103
|
+
policy_evidence=Evidence(data["policy_evidence"]),
|
|
104
|
+
headline=HeadlineState(data["headline"]),
|
|
105
|
+
candidates=tuple(CandidateResolution.from_dict(c) for c in data.get("candidates", ())),
|
|
106
|
+
notes=tuple(data.get("notes", ())),
|
|
107
|
+
found=bool(data.get("found", True)),
|
|
108
|
+
)
|
skill_lens/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Agent definitions for Skill Lens.
|
|
2
|
+
|
|
3
|
+
Each agent is described by a TOML file in ``agents/``. Every root and rule
|
|
4
|
+
carries an ``evidence`` tag (documented, empirical, inferred) and a stable
|
|
5
|
+
``rule_id`` so resolution reasons are machine-checkable and never invented.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
REGISTRY_DIR = Path(__file__).parent / "agents"
|
|
13
|
+
|
|
14
|
+
__all__ = ["REGISTRY_DIR"]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
id = "antigravity"
|
|
2
|
+
name = "Antigravity CLI"
|
|
3
|
+
identity_source = "hybrid"
|
|
4
|
+
collision_policy = "Shadow (Project > User > Builtin)"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "antigravity_search_roots"
|
|
9
|
+
source = "https://antigravity.google/docs/skills"
|
|
10
|
+
|
|
11
|
+
# Precedence is Project > User > Builtin (see collision_policy), so every
|
|
12
|
+
# project root outranks every global root. Higher rank == wins.
|
|
13
|
+
#
|
|
14
|
+
# Global user skills may be a directory or a standalone ``.md`` file.
|
|
15
|
+
[[roots]]
|
|
16
|
+
id = "antigravity_global"
|
|
17
|
+
kind = "global"
|
|
18
|
+
path = ".gemini/config/skills"
|
|
19
|
+
scope = "user"
|
|
20
|
+
rank = 70
|
|
21
|
+
rule_id = "antigravity_global_skills"
|
|
22
|
+
file_rule_id = "antigravity_standalone_md"
|
|
23
|
+
evidence = "empirical"
|
|
24
|
+
|
|
25
|
+
[[roots]]
|
|
26
|
+
id = "antigravity_builtin"
|
|
27
|
+
kind = "global"
|
|
28
|
+
path = ".gemini/antigravity/builtin/skills"
|
|
29
|
+
scope = "system"
|
|
30
|
+
rank = 30
|
|
31
|
+
rule_id = "antigravity_builtin"
|
|
32
|
+
evidence = "documented"
|
|
33
|
+
|
|
34
|
+
[[roots]]
|
|
35
|
+
id = "antigravity_project_agents"
|
|
36
|
+
kind = "project"
|
|
37
|
+
path = ".agents/skills"
|
|
38
|
+
scope = "project"
|
|
39
|
+
rank = 90
|
|
40
|
+
rule_id = "antigravity_project_shadow"
|
|
41
|
+
evidence = "empirical"
|
|
42
|
+
|
|
43
|
+
[[roots]]
|
|
44
|
+
id = "antigravity_project_agent"
|
|
45
|
+
kind = "project"
|
|
46
|
+
path = ".agent/skills"
|
|
47
|
+
scope = "project"
|
|
48
|
+
rank = 85
|
|
49
|
+
rule_id = "antigravity_project_shadow"
|
|
50
|
+
evidence = "documented"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
id = "claude"
|
|
2
|
+
name = "Claude Code"
|
|
3
|
+
identity_source = "directory_name"
|
|
4
|
+
collision_policy = "Personal > Project"
|
|
5
|
+
policy_evidence = "documented"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_worktree_root"
|
|
8
|
+
unsearched_rule_id = "claude_search_roots"
|
|
9
|
+
disabled_rule_id = "claude_skill_override_disabled"
|
|
10
|
+
disabled_settings = ".claude/settings.json"
|
|
11
|
+
disabled_key = "skillOverrides"
|
|
12
|
+
source = "https://code.claude.com/docs/en/skills.md"
|
|
13
|
+
|
|
14
|
+
# Personal user skills outrank project skills (documented).
|
|
15
|
+
[[roots]]
|
|
16
|
+
id = "claude_personal"
|
|
17
|
+
kind = "global"
|
|
18
|
+
path = ".claude/skills"
|
|
19
|
+
scope = "user"
|
|
20
|
+
rank = 100
|
|
21
|
+
rule_id = "claude_personal_beats_project"
|
|
22
|
+
evidence = "documented"
|
|
23
|
+
|
|
24
|
+
# Project skills: at the repository root they are shadowed by Personal; when
|
|
25
|
+
# nested in a subdirectory they qualify as ``dir:cmd`` and coexist.
|
|
26
|
+
[[roots]]
|
|
27
|
+
id = "claude_project"
|
|
28
|
+
kind = "project"
|
|
29
|
+
path = ".claude/skills"
|
|
30
|
+
scope = "project"
|
|
31
|
+
rank = 50
|
|
32
|
+
rule_id = "claude_personal_beats_project"
|
|
33
|
+
nested_rule_id = "claude_nested_qualification"
|
|
34
|
+
evidence = "documented"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
id = "codex"
|
|
2
|
+
name = "OpenAI Codex"
|
|
3
|
+
identity_source = "frontmatter_name"
|
|
4
|
+
collision_policy = "Unverified / Merged"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "merge"
|
|
7
|
+
walk_boundary = "project_root_markers"
|
|
8
|
+
unsearched_rule_id = "codex_search_roots"
|
|
9
|
+
source = "https://developers.openai.com/codex/skills"
|
|
10
|
+
|
|
11
|
+
[[roots]]
|
|
12
|
+
id = "codex_global"
|
|
13
|
+
kind = "global"
|
|
14
|
+
path = ".codex/skills"
|
|
15
|
+
scope = "user"
|
|
16
|
+
rank = 85
|
|
17
|
+
rule_id = "codex_global_skills"
|
|
18
|
+
evidence = "empirical"
|
|
19
|
+
|
|
20
|
+
[[roots]]
|
|
21
|
+
id = "codex_shared_global"
|
|
22
|
+
kind = "global"
|
|
23
|
+
path = ".agents/skills"
|
|
24
|
+
scope = "user"
|
|
25
|
+
rank = 80
|
|
26
|
+
rule_id = "codex_global_skills"
|
|
27
|
+
evidence = "documented"
|
|
28
|
+
|
|
29
|
+
[[roots]]
|
|
30
|
+
id = "codex_project"
|
|
31
|
+
kind = "project"
|
|
32
|
+
path = ".agents/skills"
|
|
33
|
+
scope = "project"
|
|
34
|
+
rank = 90
|
|
35
|
+
rule_id = "codex_project_ancestor_walk"
|
|
36
|
+
evidence = "empirical"
|
|
37
|
+
|
|
38
|
+
[[roots]]
|
|
39
|
+
id = "codex_system"
|
|
40
|
+
kind = "system"
|
|
41
|
+
path = ".codex/skills/.system"
|
|
42
|
+
scope = "system"
|
|
43
|
+
rank = 55
|
|
44
|
+
rule_id = "codex_system_container"
|
|
45
|
+
evidence = "empirical"
|
|
46
|
+
|
|
47
|
+
[[roots]]
|
|
48
|
+
id = "codex_etc"
|
|
49
|
+
kind = "global"
|
|
50
|
+
path = "/etc/codex/skills"
|
|
51
|
+
scope = "system"
|
|
52
|
+
rank = 75
|
|
53
|
+
rule_id = "codex_global_skills"
|
|
54
|
+
evidence = "documented"
|
|
55
|
+
|
|
56
|
+
[[roots]]
|
|
57
|
+
id = "codex_plugin"
|
|
58
|
+
kind = "plugin"
|
|
59
|
+
path = ".codex/.tmp/plugins"
|
|
60
|
+
scope = "plugin"
|
|
61
|
+
rank = 10
|
|
62
|
+
rule_id = "codex_plugin_skills"
|
|
63
|
+
evidence = "empirical"
|
|
64
|
+
recursive = true
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
id = "dsh"
|
|
2
|
+
name = "DSH"
|
|
3
|
+
identity_source = "directory_name"
|
|
4
|
+
collision_policy = "Shadow (Project > User)"
|
|
5
|
+
policy_evidence = "documented"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "dsh_search_roots"
|
|
9
|
+
ambiguous_rule_id = "dsh_duplicate_ambiguous"
|
|
10
|
+
source = "https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/subsystems/skills.md"
|
|
11
|
+
|
|
12
|
+
# RANK DIRECTION IS INVERTED -- READ THIS BEFORE EDITING.
|
|
13
|
+
#
|
|
14
|
+
# The upstream dsh docs define a rank table where a LOWER number is the HIGHER
|
|
15
|
+
# priority (100 beats 600). Skill Lens ranks the other way: a HIGHER number wins
|
|
16
|
+
# (`max(hits, key=rank)` in core/resolver.py). The upstream ranks are therefore
|
|
17
|
+
# TRANSLATED here, never copied.
|
|
18
|
+
#
|
|
19
|
+
# upstream 100 project-dsh -> 95 dsh_project
|
|
20
|
+
# upstream 200 project-agents -> 90 dsh_project_agents
|
|
21
|
+
# upstream 400 user-dsh -> 70 dsh_user
|
|
22
|
+
# upstream 500 user-agents -> 65 dsh_shared_global
|
|
23
|
+
#
|
|
24
|
+
# The relative order is what the docs assert and is preserved exactly. The
|
|
25
|
+
# absolute numbers only have to sit inside the convention every other agent
|
|
26
|
+
# already uses.
|
|
27
|
+
#
|
|
28
|
+
# Upstream also documents two roots this file deliberately OMITS:
|
|
29
|
+
# upstream 300 custom (Config.customSkillDirs)
|
|
30
|
+
# upstream 600 bundled (Config.bundledSkillDir)
|
|
31
|
+
# Both exist only when the user sets an option, so asserting them as always
|
|
32
|
+
# searched would be a guess. They are absent rather than wrong.
|
|
33
|
+
#
|
|
34
|
+
# The user root also skips its `.system` child upstream, which the shared
|
|
35
|
+
# container-traversal rule already models project-wide.
|
|
36
|
+
|
|
37
|
+
[[roots]]
|
|
38
|
+
id = "dsh_project"
|
|
39
|
+
kind = "project"
|
|
40
|
+
path = ".dsh/skills"
|
|
41
|
+
scope = "project"
|
|
42
|
+
rank = 95
|
|
43
|
+
rule_id = "dsh_documented_project"
|
|
44
|
+
evidence = "documented"
|
|
45
|
+
|
|
46
|
+
[[roots]]
|
|
47
|
+
id = "dsh_project_agents"
|
|
48
|
+
kind = "project"
|
|
49
|
+
path = ".agents/skills"
|
|
50
|
+
scope = "project"
|
|
51
|
+
rank = 90
|
|
52
|
+
rule_id = "dsh_documented_project_agents"
|
|
53
|
+
evidence = "documented"
|
|
54
|
+
|
|
55
|
+
# Plugin-bundled skills. NOT covered by the native skill docs above: upstream
|
|
56
|
+
# says recursive `**/SKILL.md` discovery is unsupported for its skill roots,
|
|
57
|
+
# but that rule is about the roots this file documents, not about node-module
|
|
58
|
+
# plugin bundles. This root exists to model a bundled-plugin layout and to keep
|
|
59
|
+
# the traversal-hazard check exercised (Phase 4 finding; see tests/test_doctor.py
|
|
60
|
+
# `dsh` traversal test). It therefore stays `inferred` and stays recursive --
|
|
61
|
+
# dropping that would delete reviewed coverage to satisfy a rule about a
|
|
62
|
+
# different kind of root.
|
|
63
|
+
[[roots]]
|
|
64
|
+
id = "dsh_profiles"
|
|
65
|
+
kind = "plugin"
|
|
66
|
+
path = ".dsh/profiles"
|
|
67
|
+
scope = "plugin"
|
|
68
|
+
rank = 40
|
|
69
|
+
rule_id = "dsh_inferred_profiles"
|
|
70
|
+
evidence = "inferred"
|
|
71
|
+
recursive = true
|
|
72
|
+
|
|
73
|
+
# Upstream 400 (user-dsh) and 500 (user-agents). Both were MISSING before
|
|
74
|
+
# Phase 6: the registry only knew project roots and a plugin root, so it was
|
|
75
|
+
# blind to `~/.dsh/skills` and `~/.agents/skills` -- where a real dsh user's
|
|
76
|
+
# skills actually live. See PHASE6_WALKTHROUGH.md section 3.
|
|
77
|
+
[[roots]]
|
|
78
|
+
id = "dsh_user"
|
|
79
|
+
kind = "global"
|
|
80
|
+
path = ".dsh/skills"
|
|
81
|
+
scope = "user"
|
|
82
|
+
rank = 70
|
|
83
|
+
rule_id = "dsh_documented_user"
|
|
84
|
+
evidence = "documented"
|
|
85
|
+
|
|
86
|
+
[[roots]]
|
|
87
|
+
id = "dsh_shared_global"
|
|
88
|
+
kind = "global"
|
|
89
|
+
path = ".agents/skills"
|
|
90
|
+
scope = "user"
|
|
91
|
+
rank = 65
|
|
92
|
+
rule_id = "dsh_documented_shared"
|
|
93
|
+
evidence = "documented"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
id = "grok"
|
|
2
|
+
name = "Grok CLI"
|
|
3
|
+
identity_source = "frontmatter_name"
|
|
4
|
+
collision_policy = "Shadow (Project > Global)"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "grok_search_roots"
|
|
9
|
+
source = "https://docs.x.ai/grok-cli/skills"
|
|
10
|
+
|
|
11
|
+
# Precedence is Project > Global (see collision_policy).
|
|
12
|
+
[[roots]]
|
|
13
|
+
id = "grok_global"
|
|
14
|
+
kind = "global"
|
|
15
|
+
path = ".grok/skills"
|
|
16
|
+
scope = "user"
|
|
17
|
+
rank = 70
|
|
18
|
+
rule_id = "grok_global_symlink_farm"
|
|
19
|
+
evidence = "empirical"
|
|
20
|
+
|
|
21
|
+
[[roots]]
|
|
22
|
+
id = "grok_bundled"
|
|
23
|
+
kind = "global"
|
|
24
|
+
path = ".grok/bundled/skills"
|
|
25
|
+
scope = "system"
|
|
26
|
+
rank = 30
|
|
27
|
+
rule_id = "grok_bundled"
|
|
28
|
+
evidence = "empirical"
|
|
29
|
+
|
|
30
|
+
[[roots]]
|
|
31
|
+
id = "grok_project"
|
|
32
|
+
kind = "project"
|
|
33
|
+
path = ".agents/skills"
|
|
34
|
+
scope = "project"
|
|
35
|
+
rank = 90
|
|
36
|
+
rule_id = "grok_project_shadow"
|
|
37
|
+
evidence = "empirical"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
id = "omp"
|
|
2
|
+
name = "Oh My Pi"
|
|
3
|
+
identity_source = "frontmatter_name"
|
|
4
|
+
collision_policy = "Namespace (higher precedence keeps the bare name)"
|
|
5
|
+
policy_evidence = "documented"
|
|
6
|
+
coexist_policy = "ambiguous"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "omp_search_roots"
|
|
9
|
+
ambiguous_rule_id = "omp_duplicate_ambiguous"
|
|
10
|
+
source = "https://github.com/can1357/oh-my-pi/blob/main/docs/skills.md"
|
|
11
|
+
|
|
12
|
+
# Documented in the upstream docs/skills.md. Two facts drive this file:
|
|
13
|
+
#
|
|
14
|
+
# 1. COLLISION IS NAMESPACED, NOT SUPPRESSED. When two same-named skills differ,
|
|
15
|
+
# "the higher-precedence skill keeps the bare name and every other variant
|
|
16
|
+
# receives a `<namespace>/<name>` suffix". The losing copy stays reachable.
|
|
17
|
+
#
|
|
18
|
+
# ``coexist_policy`` nonetheless stays ``ambiguous``, on purpose. This tool's
|
|
19
|
+
# vocabulary is shadow / merge / ambiguous, and none of them means
|
|
20
|
+
# "namespaced coexistence":
|
|
21
|
+
# - ``shadow`` would say the loser is suppressed. It is not; it stays
|
|
22
|
+
# reachable under a namespace.
|
|
23
|
+
# - ``merge`` would emit the reason "merges all roots with no documented
|
|
24
|
+
# winner". That is now false -- a winner IS documented.
|
|
25
|
+
# ``ambiguous`` under-claims ("collision policy is undocumented") where the
|
|
26
|
+
# other two over-claim. Under-claiming is the correct direction of error for
|
|
27
|
+
# a tool whose founding rule is provenance over hallucination (AGENTS.md
|
|
28
|
+
# rule 6). Representing namespacing properly is future scope, recorded in
|
|
29
|
+
# PHASE6_WALKTHROUGH.md rather than faked here.
|
|
30
|
+
#
|
|
31
|
+
# ``policy_evidence`` IS ``documented``: the roots, ranks and precedence this
|
|
32
|
+
# resolver acts on are all upstream-documented. The evidence describes the
|
|
33
|
+
# agent; ``coexist_policy`` describes what this tool can express.
|
|
34
|
+
#
|
|
35
|
+
# 2. MANAGED SKILLS ARE DEAD LAST. The `omp-managed` (auto-learn) provider has
|
|
36
|
+
# priority 5 out of nine, and "always defers to a same-named authored skill".
|
|
37
|
+
# Before Phase 6 this file ranked `.omp/agent` at 70, which claimed managed
|
|
38
|
+
# skills outranked authored ones -- the opposite of the documentation.
|
|
39
|
+
#
|
|
40
|
+
# Upstream provider priorities, highest first, for reference: native 100,
|
|
41
|
+
# skillshare 95, omp-plugins 90, claude 80, agent-plugins 75,
|
|
42
|
+
# claude-plugins/agents/codex 70, opencode 55, github 30, omp-managed 5.
|
|
43
|
+
# The absolute ranks below preserve the documented RELATIVE order that matters
|
|
44
|
+
# to this resolver (authored > shared > managed) inside the numeric convention
|
|
45
|
+
# every other agent already uses.
|
|
46
|
+
#
|
|
47
|
+
# Discovery is non-recursive upstream (one level under `skills/`); nothing here
|
|
48
|
+
# sets ``recursive``, which was verified rather than changed.
|
|
49
|
+
|
|
50
|
+
[[roots]]
|
|
51
|
+
id = "omp_project"
|
|
52
|
+
kind = "project"
|
|
53
|
+
path = ".omp/skills"
|
|
54
|
+
scope = "project"
|
|
55
|
+
rank = 95
|
|
56
|
+
rule_id = "omp_documented_project"
|
|
57
|
+
evidence = "documented"
|
|
58
|
+
|
|
59
|
+
[[roots]]
|
|
60
|
+
id = "omp_project_agents"
|
|
61
|
+
kind = "project"
|
|
62
|
+
path = ".agents/skills"
|
|
63
|
+
scope = "project"
|
|
64
|
+
rank = 90
|
|
65
|
+
rule_id = "omp_documented_project_agents"
|
|
66
|
+
evidence = "documented"
|
|
67
|
+
|
|
68
|
+
[[roots]]
|
|
69
|
+
id = "omp_shared_global"
|
|
70
|
+
kind = "global"
|
|
71
|
+
path = ".agents/skills"
|
|
72
|
+
scope = "user"
|
|
73
|
+
rank = 70
|
|
74
|
+
rule_id = "omp_documented_shared"
|
|
75
|
+
evidence = "documented"
|
|
76
|
+
|
|
77
|
+
[[roots]]
|
|
78
|
+
id = "omp_agent"
|
|
79
|
+
kind = "global"
|
|
80
|
+
path = ".omp/agent"
|
|
81
|
+
scope = "user"
|
|
82
|
+
rank = 40
|
|
83
|
+
rule_id = "omp_documented_managed_last"
|
|
84
|
+
evidence = "documented"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
id = "opencode"
|
|
2
|
+
name = "OpenCode"
|
|
3
|
+
identity_source = "frontmatter_name"
|
|
4
|
+
# Duplicate names across searched roots have no documented winner.
|
|
5
|
+
collision_policy = "Ambiguous on duplicate"
|
|
6
|
+
policy_evidence = "empirical"
|
|
7
|
+
coexist_policy = "ambiguous"
|
|
8
|
+
walk_boundary = "git_worktree_root"
|
|
9
|
+
unsearched_rule_id = "opencode_search_roots"
|
|
10
|
+
ambiguous_rule_id = "opencode_duplicate_ambiguous"
|
|
11
|
+
source = "https://opencode.ai/docs/skills"
|
|
12
|
+
|
|
13
|
+
[[roots]]
|
|
14
|
+
id = "opencode_native"
|
|
15
|
+
kind = "global"
|
|
16
|
+
path = ".config/opencode/skills"
|
|
17
|
+
scope = "user"
|
|
18
|
+
rank = 80
|
|
19
|
+
rule_id = "opencode_native_skills"
|
|
20
|
+
evidence = "empirical"
|
|
21
|
+
|
|
22
|
+
# OpenCode also searches the shared library upward from the working directory.
|
|
23
|
+
[[roots]]
|
|
24
|
+
id = "opencode_shared_global"
|
|
25
|
+
kind = "global"
|
|
26
|
+
path = ".agents/skills"
|
|
27
|
+
scope = "user"
|
|
28
|
+
rank = 80
|
|
29
|
+
rule_id = "opencode_shared_skills"
|
|
30
|
+
evidence = "empirical"
|
|
31
|
+
|
|
32
|
+
[[roots]]
|
|
33
|
+
id = "opencode_project"
|
|
34
|
+
kind = "project"
|
|
35
|
+
path = ".opencode/skills"
|
|
36
|
+
scope = "project"
|
|
37
|
+
rank = 70
|
|
38
|
+
rule_id = "opencode_project_skills"
|
|
39
|
+
evidence = "empirical"
|
|
40
|
+
|
|
41
|
+
[[roots]]
|
|
42
|
+
id = "opencode_project_agents"
|
|
43
|
+
kind = "project"
|
|
44
|
+
path = ".agents/skills"
|
|
45
|
+
scope = "project"
|
|
46
|
+
rank = 70
|
|
47
|
+
rule_id = "opencode_project_skills"
|
|
48
|
+
evidence = "empirical"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
id = "pi"
|
|
2
|
+
name = "Pi Agent"
|
|
3
|
+
identity_source = "directory_name"
|
|
4
|
+
collision_policy = "Shadow (Project > Global)"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "pi_search_roots"
|
|
9
|
+
source = "https://github.com/badlogic/pi"
|
|
10
|
+
|
|
11
|
+
# Precedence is Project > Global, and the spec matrix orders the project roots
|
|
12
|
+
# as ``.pi/skills`` then ``.agents/skills`` (spec section 3, Pi row).
|
|
13
|
+
# The live 83-link symlink farm into the shared canonical library.
|
|
14
|
+
[[roots]]
|
|
15
|
+
id = "pi_global_agent"
|
|
16
|
+
kind = "global"
|
|
17
|
+
path = ".pi/agent/skills"
|
|
18
|
+
scope = "user"
|
|
19
|
+
rank = 70
|
|
20
|
+
rule_id = "pi_global_symlink_farm"
|
|
21
|
+
evidence = "empirical"
|
|
22
|
+
|
|
23
|
+
[[roots]]
|
|
24
|
+
id = "pi_global"
|
|
25
|
+
kind = "global"
|
|
26
|
+
path = ".pi/skills"
|
|
27
|
+
scope = "user"
|
|
28
|
+
rank = 65
|
|
29
|
+
rule_id = "pi_global_skills"
|
|
30
|
+
evidence = "empirical"
|
|
31
|
+
|
|
32
|
+
[[roots]]
|
|
33
|
+
id = "pi_project"
|
|
34
|
+
kind = "project"
|
|
35
|
+
path = ".pi/skills"
|
|
36
|
+
scope = "project"
|
|
37
|
+
rank = 90
|
|
38
|
+
rule_id = "pi_project_shadow"
|
|
39
|
+
evidence = "empirical"
|
|
40
|
+
|
|
41
|
+
[[roots]]
|
|
42
|
+
id = "pi_project_agents"
|
|
43
|
+
kind = "project"
|
|
44
|
+
path = ".agents/skills"
|
|
45
|
+
scope = "project"
|
|
46
|
+
rank = 85
|
|
47
|
+
rule_id = "pi_project_shadow"
|
|
48
|
+
evidence = "empirical"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
id = "qoder"
|
|
2
|
+
name = "Qoder CLI"
|
|
3
|
+
identity_source = "frontmatter_name"
|
|
4
|
+
collision_policy = "Shadow (Project > Global)"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "qoder_search_roots"
|
|
9
|
+
source = "https://docs.qoder.com/skills"
|
|
10
|
+
|
|
11
|
+
# Precedence is Project > Global (see collision_policy). Within a project, the
|
|
12
|
+
# agent-specific root outranks the shared ``.agents`` root.
|
|
13
|
+
[[roots]]
|
|
14
|
+
id = "qoder_global"
|
|
15
|
+
kind = "global"
|
|
16
|
+
path = ".qoder/skills"
|
|
17
|
+
scope = "user"
|
|
18
|
+
rank = 70
|
|
19
|
+
rule_id = "qoder_global_symlink_farm"
|
|
20
|
+
evidence = "empirical"
|
|
21
|
+
|
|
22
|
+
[[roots]]
|
|
23
|
+
id = "qoder_project"
|
|
24
|
+
kind = "project"
|
|
25
|
+
path = ".qoder/skills"
|
|
26
|
+
scope = "project"
|
|
27
|
+
rank = 90
|
|
28
|
+
rule_id = "qoder_project_shadow"
|
|
29
|
+
evidence = "empirical"
|
|
30
|
+
|
|
31
|
+
[[roots]]
|
|
32
|
+
id = "qoder_project_agents"
|
|
33
|
+
kind = "project"
|
|
34
|
+
path = ".agents/skills"
|
|
35
|
+
scope = "project"
|
|
36
|
+
rank = 85
|
|
37
|
+
rule_id = "qoder_project_shadow"
|
|
38
|
+
evidence = "empirical"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
id = "windsurf"
|
|
2
|
+
name = "Windsurf"
|
|
3
|
+
identity_source = "hybrid"
|
|
4
|
+
collision_policy = "Shadow (Project > Global)"
|
|
5
|
+
policy_evidence = "empirical"
|
|
6
|
+
coexist_policy = "shadow"
|
|
7
|
+
walk_boundary = "git_root"
|
|
8
|
+
unsearched_rule_id = "windsurf_search_roots"
|
|
9
|
+
source = "https://docs.codeium.com/windsurf/skills"
|
|
10
|
+
|
|
11
|
+
# Precedence is Project > Global (see collision_policy). Within a project, the
|
|
12
|
+
# agent-specific root outranks the shared ``.agents`` root.
|
|
13
|
+
[[roots]]
|
|
14
|
+
id = "windsurf_global"
|
|
15
|
+
kind = "global"
|
|
16
|
+
path = ".codeium/windsurf/skills"
|
|
17
|
+
scope = "user"
|
|
18
|
+
rank = 70
|
|
19
|
+
rule_id = "windsurf_global_symlink_farm"
|
|
20
|
+
evidence = "empirical"
|
|
21
|
+
|
|
22
|
+
[[roots]]
|
|
23
|
+
id = "windsurf_project"
|
|
24
|
+
kind = "project"
|
|
25
|
+
path = ".windsurf/skills"
|
|
26
|
+
scope = "project"
|
|
27
|
+
rank = 90
|
|
28
|
+
rule_id = "windsurf_project_shadow"
|
|
29
|
+
evidence = "empirical"
|
|
30
|
+
|
|
31
|
+
[[roots]]
|
|
32
|
+
id = "windsurf_project_agents"
|
|
33
|
+
kind = "project"
|
|
34
|
+
path = ".agents/skills"
|
|
35
|
+
scope = "project"
|
|
36
|
+
rank = 85
|
|
37
|
+
rule_id = "windsurf_project_shadow"
|
|
38
|
+
evidence = "empirical"
|