Skip to content

mission control for agent skills

Remove dead scan helpers

alvinrealbc5ac17f5b36
diff --git a/AGENTS.md b/AGENTS.md
index 45c1fa4..8d0a263 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,3 +4,7 @@ Read-only dependency source repositories are available under
`.slim/clonedeps/repos/` for inspection. Do not edit these clones.
- `.slim/clonedeps/repos/vercel-labs__skills/` — `vercel-labs/skills` at `be0dd25b4a8665894a56f45ef582cc02ca802c39`; reference source for skill definitions and examples for the new project.
+
+## Validation Before Push
+
+Before pushing any branch, run the full local validation suite used by CI and fix failures first. At minimum, run `go test ./...` plus the repository's configured lint/static/dead-code checks from CI workflows. Do not push with known validation failures.
diff --git a/internal/scan/scan.go b/internal/scan/scan.go
index 4c2a84b..7f97adf 100644
--- a/internal/scan/scan.go
+++ b/internal/scan/scan.go
@@ -317,10 +317,6 @@ func scanLocationCached(loc agents.Location, skills map[string]*model.Skill, cac
applyScannedLocationRecords(loc, skills, records)
}
-func scanLocation(loc agents.Location, skills map[string]*model.Skill) {
- applyScannedLocationRecords(loc, skills, scanLocationRecords(loc))
-}
-
func scanLocationRecords(loc agents.Location) []scannedLocationRecord {
entries, err := os.ReadDir(loc.Root)
if err != nil {
@@ -463,23 +459,6 @@ func addObservedPath(sk *model.Skill, observed model.ObservedPath) {
sk.ObservedPaths = append(sk.ObservedPaths, observed)
}
-func correlateLocks(skills map[string]*model.Skill, local map[string]model.LocalLockEntry, global map[string]model.GlobalLockEntry) {
- for _, sk := range skills {
- if sk.Scope == model.ScopeProject {
- if e, ok := findLocalLock(local, sk); ok {
- entry := e
- sk.LocalLock = &entry
- }
- }
- if sk.Scope == model.ScopeGlobal {
- if e, ok := findGlobalLock(global, sk); ok {
- entry := e
- sk.GlobalLock = &entry
- }
- }
- }
-}
-
func correlateLocksIndexed(skills map[string]*model.Skill, local map[string]model.LocalLockEntry, global map[string]model.GlobalLockEntry) {
localIndex := newLocalLockLookup(local)
globalIndex := newGlobalLockLookup(global)
@@ -601,42 +580,6 @@ func candidateLockKeys(sk *model.Skill) []string {
return keys
}
-func findLocalLock(lock map[string]model.LocalLockEntry, sk *model.Skill) (model.LocalLockEntry, bool) {
- for key, entry := range lock {
- if lockKeyMatches(key, sk) {
- return entry, true
- }
- }
- return model.LocalLockEntry{}, false
-}
-
-func findGlobalLock(lock map[string]model.GlobalLockEntry, sk *model.Skill) (model.GlobalLockEntry, bool) {
- for key, entry := range lock {
- if lockKeyMatches(key, sk) {
- return entry, true
- }
- }
- return model.GlobalLockEntry{}, false
-}
-
-func lockKeyMatches(key string, sk *model.Skill) bool {
- for _, candidate := range candidateLockKeys(sk) {
- if key == candidate || key == compat.SanitizeName(candidate) || compat.NormalizeName(key) == compat.NormalizeName(candidate) {
- return true
- }
- }
- return false
-}
-
-func hasLockMatch(skills map[string]*model.Skill, scope model.Scope, key string) bool {
- for _, sk := range skills {
- if sk.Scope == scope && lockKeyMatches(key, sk) {
- return true
- }
- }
- return false
-}
-
func addDuplicateAndShadowingIssues(skills map[string]*model.Skill) {
byName := map[string][]*model.Skill{}
for _, sk := range skills {