Other repo
Reusable skill definitions that teach AI coding agents focused workflows and repository conventions.
npx -y skills add tdkn/agent-skills --skill other-repoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Read other local repositories beside the current git repo as read-only context for cross-repo work. Use for shared types, APIs, schemas, SDKs, generated clients, env vars, feature flags, and contract alignment across repos. Trigger when another local repo may exist at ../repo-name. Do not use for remote-only or current-repo-only tasks.
SKILL.md
1.9 KB, as published. Nobody here has run it
Other Repo
Treat other local repos as read-only extensions of the current workspace.
Workspace
repo_root=$(git rev-parse --show-toplevel)
parent_dir=$(dirname "$repo_root")
current_repo=$(basename "$repo_root")
find "$parent_dir" -mindepth 1 -maxdepth 1 -type d \
! -name "$current_repo" -print | sort
Stay inside "$parent_dir" only.
Resolve a target repo
target="$parent_dir/TARGET_REPO"
[ -d "$target" ] || {
echo "Missing target repo: $target" >&2
exit 1
}
git -C "$target" status --short --branch
Mention dirty state or non-main branches when relevant.
Search fast
Prefer rg. Avoid ls -R.
# files
rg --files "$target"
# symbol / endpoint / type search
rg -n "createSession|SessionRequest|FEATURE_X" \
"$repo_root" "$target" \
--glob '!**/{node_modules,dist,build,target,.next}/**'
Read focused slices only:
nl -ba "$target/path/to/file.ts" | sed -n '40,120p'
Best search order
For contracts and shared behavior:
- schema / OpenAPI / proto / GraphQL
- exported types
- routes / handlers
- SDK or generated client
- call sites
Search definition shapes first:
rg -n "export\s+(type|interface|class|function|const)\s+NAME\b" "$target"
Rules
- Read-only by default.
- Do not edit, install, build, test, fetch, pull, switch branches, or commit in other repos unless explicitly requested.
- Avoid secrets and real
.envfiles. - Prefer
.env.example, schemas, and docs. - Report evidence with paths and line numbers.
- If no matching repo exists, say what was checked.