Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Theorist Mode

ASecurity

Activate theoretical foundations context for discussions about Grafema's formal underpinnings, multi-language strategy, cognitive science, and abstract architecture. Use when: (1) discussing formal languages, type theory, abstract interpretation, (2) planning multi-language support, (3) designing metrics or benchmarks, (4) reasoning about completeness and soundness of analysis, (5) positioning Grafema academically.

36 stars
0 votes
0 copies
0 views
Added 9/20/2026
datajavaswiftkotlinnodeexpressaws

Works with

claude code

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Disentinel/grafema --skill theorist-mode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Theorist Mode?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Theorist Mode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/disentinel-theorist-mode/badge)](https://www.skillsdirectory.com/skills/disentinel-theorist-mode)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
skill.md
---
name: theorist-mode
description: |
  Activate theoretical foundations context for discussions about Grafema's
  formal underpinnings, multi-language strategy, cognitive science, and
  abstract architecture. Use when: (1) discussing formal languages, type
  theory, abstract interpretation, (2) planning multi-language support,
  (3) designing metrics or benchmarks, (4) reasoning about completeness
  and soundness of analysis, (5) positioning Grafema academically.
author: Vadim Reshetnikov + Claude Code
version: 1.0.0
date: 2026-03-03
tags: [research, theory, architecture, cognitive-science]
---

# Theorist Mode

## Activation

Load full theoretical context before discussing abstract/formal topics.

## Required Context — Read These Files First

1. `_ai/research/theoretical-foundations.md` — 5 abstraction levels, all theories, Cognitive Dimensions, evidence base, LLM benchmark design, academic partnership strategy
2. `_ai/research/declarative-semantic-rules.md` — semantic rules matrix, flow rules, completeness guarantees, prior art (Spoofax, CodeQL, Joern)

## Key Concepts Quick Reference

### The Five Levels

```
L5: Cognitive Model    → Cognitive Dimensions of Notations (Green & Petre)
L4: Paradigm           → Denotational Semantics
L3: Semantic Projections → Abstract Interpretation (Cousot & Cousot)
L2: Semantic Roles     → Operational Semantics
L1: AST Node Types     → Formal Grammars (Chomsky)
L0: Source Code
```

### Core Vocabulary

- **Semantic projection** — DFG, CFG, Scope etc. Each is an abstract interpretation of full program semantics
- **Semantic role** — cross-language operation class: Callable, Invocation, Declaration, Import, Assignment, Access, Control
- **Flow rule** — operational semantics for one AST node type in one projection: `ConditionalExpression.DFG → consequent|alternate flows to parent`
- **Soundness** — no false negatives. If there's a real dependency, the graph shows it
- **Completeness** — every relevant AST node type has a rule for every applicable projection
- **Functor** — mapping between abstraction levels (AST→Graph, Graph→DFG, Graph→Haskell types)
- **Cognitive load** — intrinsic (task complexity) + extraneous (tool friction) + germane (building mental model). Grafema reduces extraneous and pre-builds germane.

### Grafema's Theoretical Identity

**"Haskell for untyped code"** — Grafema builds what Haskell's type system provides natively, but for languages where types don't exist.

| Haskell | Grafema |
|---------|---------|
| Type signatures | Graph edges (RETURNS, THROWS, TRANSFORMS) |
| Exhaustiveness checking | Semantic rules matrix |
| Type class laws | Guarantees (`grafema check`) |
| Hoogle (search by type) | `find_nodes` (search by graph) |
| Compiler rejects inconsistencies | `grafema check` rejects broken guarantees |

### The Key Number

**Developers spend 58% of time on code comprehension.** A tool that speeds this up by 30% saves 17% of total developer time. For 50 developers = 8.5 FTE.

### Multi-Language Strategy

Best-in-class parser per language (NOT tree-sitter). AST = human understanding, CST = "code of code".

| Language | Parser | Complexity | MVP weeks |
|----------|--------|------------|-----------|
| JS/TS | Babel | Baseline | Done |
| Java | JavaParser | Low | 2-3 |
| Kotlin | kotlin-compiler (PSI) | Medium-Low | 3-4 |
| Swift | SwiftSyntax | Medium | 4-5 |
| Obj-C | libclang | High | 6-8 |

Order: Java first (simplest, reveals JS-coupling), then Kotlin → Swift → Obj-C.

### Completeness Chain

```
@babel/types spec
  → generate semantic rules matrix (180 nodes × 7 projections)
    → generate visitors/edges from rules
      → graph is provably complete
        → LLM benchmark shows improvement
          → human study at ICPC/PPIG confirms
```

## Discussion Guidelines

When in theorist mode:

1. **Use formal vocabulary** — "semantic projection" not "analysis type", "soundness" not "completeness-ish"
2. **Reference the levels** — "this is an L3 concern (projection design)" or "this is L5 (cognitive impact)"
3. **Connect to evidence** — cite the 58% comprehension number, NASA-TLX, Cousot & Cousot
4. **Think in functors** — "this transformation preserves/loses what properties?"
5. **Check prior art** — before proposing, check if Spoofax/CodeQL/Joern already solved it
6. **Measure** — every claim should have a measurable metric attached

Attribution

DisentinelDisentinel
View sourceMore from Disentinel →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Twitter Algorithm Optimizer

Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

742580 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

655280 votes

Weather

Get current weather and forecasts (no API key required).

476190 votes
View all in data →