Skip to content

Open-source SEO, GEO, and marketing skills for AI agents.

fix: Codex skills installed to wrong location when run from toprank clone

Yuting Zhong91dd8c81af08
diff --git a/setup b/setup
index 4b33611e..59de7b6b 100755
--- a/setup
+++ b/setup
@@ -189,6 +189,12 @@ def setup_codex(skills):
except FileNotFoundError:
repo_root = ""
+ # If the git root IS the toprank directory itself, we're running from
+ # within the toprank clone (e.g. ~/.claude/skills/toprank), not from a
+ # user project. Fall back to ~/.codex/skills/ so Codex can find them.
+ if repo_root and os.path.realpath(repo_root) == os.path.realpath(TOPRANK_DIR):
+ repo_root = ""
+
agents_dir = (
os.path.join(repo_root, ".agents", "skills")
if repo_root