Agent skill

system2-attention

System 2 attention mechanisms for deliberate, slow reasoning in transformer

majiayu000534★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill system2-attention --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-llm/system2-attention/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# System 2 Attention Skill: Deliberate Reasoning Validation **Status**: ✅ Production Ready **Trit**: -1 (MINUS - validator/constraint) **Color**: #2626D8 (Blue) **Principle**: Filter noise via deliberate re-attention **Frame**: Two-stage attention with explicit reasoning --- ## Overview **System 2 Attention** (S2A) validates and filters transformer attention by regenerating context deliberately. Standard attention (System 1) is fast but susceptible to sycophancy and irrelevant context. S2A re-attends after explicit reasoning. 1. **Context regeneration**: LLM rewrites context removing irrelevant info 2. **Two-pass attention**: Fast then deliberate 3. **Sycophancy reduction**: Filter opinion-seeking noise 4. **Factual grounding**: Anchor to verified facts ## Core Pattern ``` S2A(x, context): # System 1: fast pattern matching context_filtered = LLM("Extract only relevant facts from: {context}") # System 2: deliberate reasoning on clean context return LLM(x, context=context_filtered) ``` ```python def system2_attention(query: str, context: str, model) -> str: # Stage 1: Regenerate context (remove sycophantic/irrelevant) filter_prompt = f"""Given the context below, extract only the obje

What's inside
Steps it walks through
  1. Overview
  2. Core Pattern
  3. Key Concepts
  4. 1. Context Filtering
  5. 2. Two-Pass Architecture
  6. 3. Factual Grounding Validator
  7. Commands
  8. Integration with GF(3) Triads
  9. Related Skills
  10. Scientific Skill Interleaving
  11. Graph Theory
  12. Bibliography References
  13. Cat# Integration
  14. GF(3) Naturality
Ships with 1 file
  • metadata.json
Commands it runs
Apply S2A filtering
just s2a-filter context.txt query.txt
Measure sycophancy reduction
just s2a-sycophancy-test model responses/
Validate factual grounding
just s2a-grounding response.txt facts.txt
More from claude-skill-registry
All skills →
About this skill
What does the system2-attention skill do?

System 2 attention mechanisms for deliberate, slow reasoning in transformer

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill system2-attention --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going