twg-context-discovery
Skill35 starsChanged 6 months agoApache-2.0View on GitHub
Use with root `twg` for dependency maps, related entities, project-to-repo discovery, person conversations and mentions, OOO catch-ups, and "catch me up" requests around a concrete anchor.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ByronScottJones/Agentsedited, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- ByronScottJones/Agents★ 775% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- twg-agentic-searchSkill
- twg-artifactsSkill
- twg-code-reviewSkill
- twg-confluenceSkill
- twg-engineering-workSkill
- twg-jira-resolve-merged-workSkill
- twg-jiraSkill
- twg-operational-healthSkill
- twg-responsibility-routingSkill
- twg-setupSkill
- twgSkill
- twg-space-creationSkill
- twg-status-rollupsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Use root twg: plan from twg help-map and reuse its batched describe contracts.
- Very specific: line 12
Use twg help describe <path> only when required details are missing.
- Very specific: line 16
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg (macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe …
- Distinctive: line 45
If context is not advertised for an anchor type, use product-native hydration and search evidence instead of inventing paths.
- Distinctive: line 76
Use them only when the user explicitly asks for that query language or typed commands cannot express the required edge.
- Distinctive: line 81
Use inline or compact output first.
- Distinctive: line 85
Treat third-party URLs as nodes and retain relationship direction.
- Distinctive: line 95
Use strong query variants rather than many synonyms.
- Distinctive: line 96
After the first source fetch plus context/search pass, pause and compare the evidence against the requested output.
- Distinctive: line 101
If a context or graph-backed command returns the same backend/coverage error twice, do not keep probing adjacent graph paths.
- Distinctive: line 104
Stop when the next candidate would not add new entities, links, contributors, teams, decisions, ownership, risk, or next action.
- Distinctive: line 117
Do not stop at search results without hydrating anchors.
- Very specific: line 118
Do not treat stdout_shape as a complete entity or URL inventory.
- Distinctive: line 119
Do not skip peer expansion for graph/dependency prompts because peers look "Done".
- Distinctive: line 121
Do not dismiss a 1-hop candidate by title alone.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
twg-context-discovery
Use root twg: plan from twg help-map and reuse its batched describe contracts.
Use twg help describe <path> only when required details are missing.
CLI launcher fallback
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg
(macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe (PowerShell), then
tell user to add that directory to PATH. Do not treat auth or command errors as
PATH failures.
Agents: use host-set TWG_AGENT_DEFAULTS=1 or TWG_AGENT_DEFAULTS=1 twg <command>. If assignments are blocked, pass --mode agent with explicit output flags. Respect host permissions. --mode user overrides the opt-in.
First Move
Identify the anchor before widening:
- Stable key, URL, or ARI: use directly when the family is clear.
- Named project/service: retain qualifiers; hydrate and verify identity before synthesis. Use an alias/successor only with source evidence; report missing named evidence as a scoped gap. Broad or ambiguous topics may explore plausible scopes.
- Fuzzy topic/name: classify scope; compare plausible anchors before ranking, hydrating only those whose evidence can resolve the scope. Keep the set small, but do not use a fixed anchor count when a material ambiguity remains.
- Multiple same-kind anchors: batch them in one context call when supported.
- Unknown command shape: inspect focused help before calling data.
For fuzzy topics, group candidates by charter, roadmap, project, product, or service scope; keep same-named clusters separate. Compare scope, centrality, breadth, and recency before selecting. If unclear, show alternatives or ask before inferring ownership. Parent/program, component/subproject, sibling, and successor candidates require charters or relationships; reopen comparison when evidence contradicts a provisional anchor. Exact keys and URLs keep the fast path.
If context is not advertised for an anchor type, use product-native hydration and search evidence instead of inventing paths.
For ownership, expertise, approval authority, leadership reach-outs, or
escalation, load ../twg-responsibility-routing/SKILL.md. Return here only
when that workflow needs relationship or dependency expansion.
Route Selection
- Person anchors: load
../twg/references/USER-IDENTIFIERS.mdfor context, collaborators, reporting peers, and activity routes. Check live help for 3P support; conversations/mentions do not imply full 1P coverage. - Known Jira work items usually need native workitem details plus relationship context.
- Projects and goals need native details plus Jira, docs, search, PR, and meeting evidence.
- For topic onboarding, start with one knowledge search and one native-work search; compare formal epic, project, goal, and page anchors by source-defined hierarchy. Prefer the anchor linking current delivery/code; use context or responsibility only for dependencies or people. Reuse returned output before another projection and add a focused read whenever it can resolve a material scope, relationship, owner, freshness, or delivery gap. Do not retry synonyms or continue once those claims are supported or the remaining evidence is unavailable.
- For restart, handoff, or OOO catch-up, load
../twg-status-rollups/references/personal-work-summary.mdand follow its restart guidance. Infer priority across connected evidence and hydrate only anchors that change the user's next action. - Dependency map and page/topic prompts need hydrated anchors before broad search is evidence. Map broad subdomains before assigning owners/experts.
- Raw graph-query/debugging surfaces are not the default dependency-map route. Use them only when the user explicitly asks for that query language or typed commands cannot express the required edge.
Evidence Policy
Use inline or compact output first. Fetch central candidates' fields, owner, status, body, comments, URLs, and context edges. Escalate to full output or targeted native follow-ups only for material evidence or coverage gaps within the established scope. Do not stop at a numeric count while such a gap remains. Treat third-party URLs as nodes and retain relationship direction.
Expansion Rules
- Expand by relationship role, not raw count.
- Hydrate parent, epic, inbound peer, blocker, consumer, central page, external design, PR, commit, branch, assignee, reporter, contributor, and reviewer signals when they change direction, risk, ownership, or next action.
- Fetch known older links directly by URL, key, ID, or ARI instead of widening the whole graph blindly.
- Use strong query variants rather than many synonyms.
- After the first source fetch plus context/search pass, pause and compare the evidence against the requested output. If owner, status, relation, recency, evidence URL/key, and the requested source roles/content are present, synthesize instead of widening. Otherwise continue only for a candidate that can close the material gap.
- If a context or graph-backed command returns the same backend/coverage error twice, do not keep probing adjacent graph paths. Record the coverage gap and continue with product-native hydrated evidence.
- Stop when the next candidate would not add new entities, links, contributors, teams, decisions, ownership, risk, or next action.
Answer
Explain the anchor and the relationships that answer the question, with sources. For a catch-up, focus on priorities and next actions; for a dependency map, make edge direction and ownership clear. Distinguish confirmed links from inferences and note material risks or evidence gaps. Use a relationship table only when it clarifies a multi-entity map.
Anti-Patterns
- Do not stop at search results without hydrating anchors.
- Do not treat
stdout_shapeas a complete entity or URL inventory. - Do not skip peer expansion for graph/dependency prompts because peers look "Done".
- Do not dismiss a 1-hop candidate by title alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

