acquire-codebase-knowl…
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Use before reporting any cosine similarity computed over embeddings or transformer hidden states, whether the agent computed the vectors or loaded them. Measures the anisotropy of each side, centres by the population mean, and scores matched pairs against a permuted floor taken
Claude Code
$ npx -y skills add github/awesome-copilot --skill embedding-anisotropy-check --agent claude-code
Codex
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a codex -y
Cursor
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a cursor -y
Gemini CLI
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a gemini-cli -y
GitHub Copilot
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a github-copilot -y
OpenCode
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a opencode -y
Windsurf
$ npx skills add github/awesome-copilot --skill embedding-anisotropy-check -a windsurf -y
name: embedding-anisotropy-check description: 'Use before reporting any cosine similarity computed over embeddings or transformer hidden states, whether the agent computed the vectors or loaded them. Measures the anisotropy of each side, centres by the population mean, and scores matched pairs against a permuted floor taken from the same comparison. Use when comparing one model''s embeddings across precisions, runtimes or layers, when evaluating retrieval, probes or adapters, or before calling a similarity high, two conditions in agreement, or a small gap a null.' license: MIT compatibility: Python 3.9+ with numpy
Raw cosine between embeddings is rarely centred on zero. Most sentence encoders and most hidden-state layers place every vector near one shared direction, so two unrelated inputs can score 0.6, 0.9 or 0.99. A matched pair at 0.9 is then not evidence of anything by itself, and a gap of 0.01 between two conditions can be the whole signal or none of it. This skill makes every such comparison carry its own floor.
The agent does not vectorise anything here. The skill applies at the point where the agent is about to report a cosine number, whoever produced the vectors:
export of this encoder still matches bf16" ends in a script that prints a mean cosine. Before the agent says "0.91, the export is fine", it runs the same model's unrelated pairs through the script and reports the floor beside the matched figure.
states, a vector-store dump. Asked "are these two layers encoding the same thing" or "did the fine-tune move the representations", the agent loads the arrays and runs the check before answering.
similarity high, says two conditions agree, or calls a small difference a null. The number in that sentence is the trigger.
which share one coordinate space.
Not for two independently trained models as they stand. A rotation of one model's space keeps its geometry and changes every cosine against the other model, and centring does not align the two bases. Fit an explicit map first, for example orthogonal Procrustes on a train split of paired rows, and compare the mapped rows; or compare each model's own within-space similarities instead.
1. Save the compared rows as two `.npy` arrays of shape `(n, d)`, row `i` of A paired with row `i` of B. 2. Choose where the means come from. The best source is a train split from the same domain, model and modality as the compared rows. A mean fitted on another domain mis-centres: it can leave part of the shared direction in place, remove too much of it, or add a direction of its own, and what it leaves then looks like an effect of whatever differs between the domains. 3. Run the bundled script:
python scripts/anisotropy_check.py A.npy B.npy --fit-a trainA.npy --fit-b trainB.npy
Pass `--shared` when A and B come from one model and one population, so that both sides are centred by one mean. Without `--fit-a` and `--fit-b` the means are fitted on the compared rows themselves, and the output's `means` field says, for each side, which rows its mean came from. 4. Report, side by side: the anisotropy of each side, matched against floor before centring, matched against floor after centring, and `partner_ranked_first` against its chance rate `1/n`.
of the mean of the unit rows, so it measures how much the rows share one common direction, which is what centring removes. It does not detect every departure from isotropy: rows spread along one axis in both directions score near 0 and still give raw cosines of +1 and -1. A value near 0 says there is little within-side mean direction to remove, not that raw cosine can be read without its floor. Above about 0.3, rows within that side cluster strongly around a mean direction (the script adds a warning); check `raw.floor` to see how much of that direction is shared across sides, and report both the raw and centred matched-versus-floor readings (centring changes the scoring function and does not replace evaluating an index that searches by raw cosine).
distance from this floor.
When unrelated pairs all score the same, the floor has no spread and `gap_over_floor_sd` is `null`: the gap cannot be expressed in floor standard deviations, and the plain `gap` is the figure to read.
both ways rather than assuming it transfers.
is biased upward, and the bias is greatest when the gap is small relative to its noise.
A community-created collection of custom agents, instructions, skills, hooks, workflows, and plugins to supercharge your GitHub Copilot experience.
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like…
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps…
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default,…
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks,…
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like…
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…