Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .megamemory/knowledge.db
Binary file not shown.
Binary file added .megamemory/knowledge.db-shm
Binary file not shown.
Binary file added .megamemory/knowledge.db-wal
Binary file not shown.
39 changes: 33 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ def get_category_for_skill(skill_name: str) -> str:
exact_match = False
if skill_name.startswith('"') and skill_name.endswith('"'):
exact_match = True
name_lower = skill_name[1:-1].strip().lower().replace("_", "-").replace(" ", "-")
name_lower = (
skill_name[1:-1].strip().lower().replace("_", "-").replace(" ", "-")
)
else:
name_lower = skill_name.lower().replace("_", "-")

Expand Down Expand Up @@ -523,9 +525,12 @@ def migrate_skills():

dest = cat_dir / folder.name
if dest.exists():
shutil.rmtree(dest)
if dest.is_symlink() or dest.is_file():
dest.unlink()
else:
shutil.rmtree(dest)

shutil.move(str(folder), str(cat_dir))
shutil.move(str(folder), str(dest))

category_counts[category] = category_counts.get(category, 0) + 1
moved_count += 1
Expand Down Expand Up @@ -625,16 +630,38 @@ def generate_pointers(category_counts):

def main():
import argparse
parser = argparse.ArgumentParser(description="SkillPointer Setup - Infinite Context. Zero Token Tax.")
parser.add_argument("--agent", choices=["opencode", "claude"], default="opencode",
help="Target AI agent (opencode or claude)")

parser = argparse.ArgumentParser(
description="SkillPointer Setup - Infinite Context. Zero Token Tax."
)
parser.add_argument(
"--agent",
choices=["opencode", "claude"],
default="opencode",
help="Target AI agent (opencode or claude)",
)
parser.add_argument(
"--skill-dir",
type=str,
help="Directory to search for skills (overrides --agent default)",
)
parser.add_argument(
"--vault-dir",
type=str,
help="Directory to move skills to when creating pointers (overrides --agent default)",
)
args, unknown = parser.parse_known_args()

if args.agent == "claude":
CONFIG["agent_name"] = "Claude Code"
CONFIG["active_skills_dir"] = Path.home() / ".claude" / "skills"
CONFIG["hidden_library_dir"] = Path.home() / ".skillpointer-vault"

if args.skill_dir:
CONFIG["active_skills_dir"] = Path(args.skill_dir).expanduser().resolve()
if args.vault_dir:
CONFIG["hidden_library_dir"] = Path(args.vault_dir).expanduser().resolve()

# Handle 'install' argument for compatibility with Install.bat/vbs
if unknown and unknown[0] == "install":
pass
Expand Down