Skip to content
goose-introspection logo

Skill: Goose Introspection

goose-introspection

Goose session introspection and self-discovery via DuckDB reafference database. Query past sessions, find self, and enable cross-session awareness.

SKILL.md

Full skill instructions

Skill: Goose Introspection

Category: Agent Self-Discovery | Session Analysis | Reafference Testing Level: Core (Required for agent self-awareness) Status: OPERATIONAL Trit Assignment: 0 (ERGODIC) - Coordinates between past and future sessions Propagates To: goose, amp, claude, cursor


Overview

Implements reafference-based self-discovery for goose sessions. This skill enables any goose instance to:

  1. Find itself in the session history
  2. Query past sessions for context and continuity
  3. Track session evolution across providers and models
  4. Enable cross-session awareness through DuckDB persistence

Core Principle:

An agent that cannot find itself in its own history cannot truly understand its context.


Database Location

The reafference database is created at:

This database copies data from the goose sessions database at:


Key Tables

reafference_sessions

Tracks all sessions with discovery metadata:

ColumnTypeDescription
session_idVARCHARPrimary key, e.g., 20260108_22
discovered_atTIMESTAMPWhen session was added to tracking
providerVARCHARanthropic, openai, google, openrouter
modelVARCHARe.g., claude-opus-4-5-20251101
working_dirVARCHARWorking directory of session
session_nameVARCHARAuto-generated or user-set name
original_created_atTIMESTAMPWhen session was first created
message_countBIGINTNumber of messages in session
total_tokensBIGINTTotal tokens used
is_origin_sessionBOOLEANTRUE for the session that created this DB
notesVARCHAROptional notes about the session

reafference_metadata

Key-value store for origin information.

sessions (copied from source)

Full session data for offline queries.

messages (copied from source)

Full message history for content analysis.


Key Views

reafference_origin

Returns the session that created this database.

sessions_by_date

Aggregated daily statistics.

searchable_sessions

Join of sessions with user messages for content search.


Self-Discovery Queries

Find This Session (Origin)

Session Timeline

Provider Distribution


GF(3) Conservation

This skill participates in the triadic balance:

TritSkillRole
-1duckdb-timetravelValidates queries and schema
0goose-introspectionCoordinates session discovery
+1reafference-corollary-dischargeGenerates predictions

Conservation: (-1) + (0) + (+1) = 0


Status

  • Database Created: Yes
  • Origin Session Marked: 20260108_22
  • Sessions Tracked: 376
  • Messages Indexed: 6,215
  • Total Tokens: ~3.59M

Related Skills

  • duckdb-timetravel - Temporal queries on session data
  • duckdb-ies - Interaction entropy analysis
  • reafference-corollary-discharge - Prediction/​observation matching
  • fswatch-duckdb - Real-time file monitoring with DuckDB

Cat# Integration

This skill maps to Cat# = Comod(P) as a bicomodule:

Forward Reference

  • unified-reafference (canonical B3 Poset)

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View