Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lossless-group/lossless-agent-skills --skill study-repos-firstgit clone --depth 1 https://github.com/lossless-group/lossless-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lossless-group/lossless-agent-skills/study-repos-first)<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/study-repos-first"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/study-repos-first/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/study-repos-first"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/study-repos-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00158 | $0.02400 |
| Opus 5.5 | $0.00063 | $0.00960 |
| Sonnet 5.5 | $0.00032 | $0.00480 |
| Haiku 4.5 | $0.00016 | $0.00240 |
Grade A, and why
study-repos-first scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Study Repos First
A study is a curated reference collection — a directory of upstream specs, prior art, reference implementations, papers, or codebases — pinned as git submodules before a decision is made or a feature is built. It is not a project (it ships nothing) and not documentation (it lives, it's checked-out code). It is a reading list with structure, pinned so it never rots out from under us.
This skill is foundational and iterative. It will be expanded as we work through real studies together. Treat the contents as the current best understanding, not the final word.
When to use this skill
- Starting any task in
ai-labs/(or any pseudomonorepo) where the question is about conventions — naming, file shapes, folder layouts, schemas, protocols, manifest formats — rather than novel logic - The user says "let's study X", "what's the prior art on X", "how do other projects handle X", "pin a reference", "add a submodule under studies/"
- A design decision is on the table and the temptation is to let the agent fill in patterns from training data
- Scaffolding a new
studies/<topic-slug>/directory - Adding a reference to an existing study (new submodule, README update)
- Deciding whether a study has outgrown a subdirectory and should be promoted to its own repo (the
lossless-group/study-<slug>pattern) - Reading from a study to ground a current implementation question
The behavioral core (this is the actual skill)
Don't paraphrase from training data when pinned upstream code is — or could be — one cd away.
When a domain question comes up:
- Check if a study already covers it. Look in
ai-labs/studies/(and anystudies/directory walking up the tree). If a study exists, read from the pinned submodules, not from memory. - If no study exists and the question is meaningful, propose one. Frame the question first; pick a slug; set up the directory.
- Cite findings with file paths —
studies/<topic>/<repo>/<file>:<line>— so the user can jump to the upstream source. - Do not summarize or paraphrase upstream specs into prose unless asked. The upstream repo is the artifact. A paragraph paraphrasing
llms.txtis a hot take that will rot.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +2 lines 2805cfc12bdd
- 3mo ago First seen · 123 lines · 158 tokens per session scan A d8d0944935ed
study-repos-first is a skill published in the GitHub repository lossless-group/lossless-agent-skills (4 stars, last pushed 2d ago), licensed MIT. It adds 158 tokens to every session and 2,400 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
study-repos-first compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| study-repos-firstlossless-group/lossless-agent-skills | Skill | 4 | 2d ago | MIT | A | 158 | Claude Code, Codex |
| contextlattice-recallsheawinkler/ContextLattice | Skill | 156 | 7d ago | Apache-2.0 | A | 40 | Claude Code |
| scs-domaintim-mccrimmon/structured-context-spec | Skill | 20 | today | Apache-2.0 | A | 106 | Claude Code, Codex |
| scs-projecttim-mccrimmon/structured-context-spec | Skill | 20 | today | Apache-2.0 | A | 109 | Claude Code, Codex |
| scs-explaintim-mccrimmon/structured-context-spec | Skill | 20 | today | Apache-2.0 | A | 167 | Claude Code, Codex |
| scs-validatetim-mccrimmon/structured-context-spec | Skill | 20 | today | Apache-2.0 | A | 90 | Claude Code, Codex |
| agent-debug-loopoyi77/1ai-skills | Skill | 19 | today | MIT | A | 50 | Claude Code |