Overview
Auto-Skill’s type system provides comprehensive TypeScript interfaces for all core functionality. Types are organized by domain and consolidated from Python dataclasses across all modules. Source:src/types/index.ts
Event Types
ToolEvent
ToolEvent
Represents a single tool invocation event captured by the observer.
Unique identifier for the tool event
Session identifier this event belongs to
Path to the project where the tool was used
Name of the tool that was invoked
Input parameters passed to the tool
Response returned by the tool, or null if no response
Whether the tool invocation was successful
ISO-8601 timestamp of when the event occurred
Optional identifier for the agent that invoked the tool
TelemetryEvent
TelemetryEvent
A telemetry event for tracking auto-skill usage and performance.
Type of telemetry event
ISO-8601 timestamp of when the event occurred
Optional session identifier
Optional project path
Additional metadata for the event
Pattern Types
DetectedPattern
DetectedPattern
A detected workflow pattern with v1 + v2 metadata and hybrid Phase 3 enhancements.
Unique identifier for the detected pattern
Sequence of tool names that form this pattern
Number of times this pattern has been observed
Confidence score for this pattern (0-1)
List of session IDs where this pattern was detected
ISO-8601 timestamp of when this pattern was first detected
ISO-8601 timestamp of when this pattern was last seen
Success rate of this pattern (0-1)
Auto-generated name for the skill
Auto-generated description of what the skill does
V2: Rich session context metadata
V2: Code-level context and indicators
V2: Detected design patterns in the workflow
V2: Identified problem-solving strategy
Hybrid Phase 3: Mental model and reasoning context
SequenceMatch
SequenceMatch
DesignPattern
DesignPattern
Represents a detected design pattern in code or workflow.
Unique identifier for the design pattern
Type of pattern: “architectural”, “coding”, or “workflow”
Name of the design pattern (e.g., “MVC”, “Factory”, “TDD”)
Confidence score for pattern detection (0-1)
Description of the detected pattern
List of indicators that led to pattern detection
Files where this pattern was detected
Code snippets demonstrating the pattern
Additional metadata about the pattern
PatternContext
PatternContext
Context about when and why a design pattern is appropriate.
Name of the design pattern
Guidance on when this pattern should be used
Benefits of using this pattern
Trade-offs and costs of using this pattern
Common mistakes when implementing this pattern
ProblemSolvingPattern
ProblemSolvingPattern
A detected problem-solving approach pattern.
Unique identifier for the pattern
Type of problem-solving approach
Description of the problem-solving strategy
Steps in the problem-solving workflow
Success rate of this approach (0-1)
Number of times this approach was observed
Session IDs demonstrating this approach
Context clues that indicate when this approach is appropriate
Session Types
ConversationTurn
ConversationTurn
A single turn in the conversation (user message + agent response).
Session identifier this turn belongs to
ISO-8601 timestamp of the conversation turn
User’s message, or null if system-initiated
Agent’s response, or null if no response
List of tools used during this turn
Detected user intent category
Identified problem domain
Outcome of this conversation turn
SessionContext
SessionContext
Rich context for a complete coding session.
Unique session identifier
ISO-8601 timestamp of session start
ISO-8601 timestamp of session end
Path to the project for this session
All conversation turns in this session
Primary intent for the session (debug, implement, refactor, test)
All problem domains addressed in this session
Type of workflow used (TDD, debugging, feature implementation)
Indicators of session success
Important decisions made during the session
Skill Types
SkillCandidate
SkillCandidate
A skill candidate ready for user review and confirmation.
Suggested name for the skill
Description of what the skill does
Procedural steps for the skill
Where the SKILL.md file will be written
YAML frontmatter metadata for the skill
Whether this skill should use agent forking
Target agent type, or null for cross-agent
List of tools allowed in this skill
The detected pattern this skill is based on
V2 enhanced content and context
SkillAdoption
SkillAdoption
Tracks adoption and performance of a skill (external or local).
Unique identifier for the skill
Name of the skill
Source of the skill: “external”, “local”, or “mental-hint”
Initial confidence score when adopted
Current confidence score based on usage
Number of times the skill has been used
Number of successful uses
Number of failed uses
ISO-8601 timestamp of first use
ISO-8601 timestamp of most recent use
Whether this skill has graduated to local status
ExternalSkill
ExternalSkill
An external skill from the skills.sh registry.
Unique identifier in the registry
Skill name
Skill description
Skill author
Number of times this skill has been installed
Tags for categorization
URL to the skill source
List of compatible coding agents
ISO-8601 timestamp of skill creation
ISO-8601 timestamp of last update
SkillSuggestion
SkillSuggestion
A suggested skill with context and confidence scoring.
Skill name
Skill description
Source: “local”, “external”, or “mental-hint”
Confidence score for this suggestion (0-1)
Categorization tags
Mental model context for the suggestion
Pattern matching details
Metadata from external sources
Adoption tracking if this skill has been used
SkillSearchResult
SkillSearchResult
A single skill result from a provider search.
Unique identifier for the skill
Skill name
Skill description
Provider ID: “skillssh”, “local”, “wellknown”, etc.
Confidence score for relevance (0-1)
Skill author
Categorization tags
Number of installs
URL to skill source
Compatible coding agents
Additional metadata from the provider
Management Types
GraduationCandidate
GraduationCandidate
Represents a skill eligible for graduation from external to local status.
Name of the skill
Current confidence score
Total number of uses
Number of successful uses
Calculated success rate (0-1)
ISO-8601 timestamp of first use
ISO-8601 timestamp of most recent use
Original source: “external” or “mental-hint”
Additional metadata about the candidate
LockedSkill
LockedSkill
A skill entry in the lock file for version control.
Skill name
File path to the skill
SHA-256 hash of skill content
Source: “auto”, “graduated”, or “manual”
ISO-8601 timestamp of when locked
Additional metadata for the locked skill
PublishStatus
PublishStatus
Represents publishing status for a skill to skills.sh.
Name of the skill
Whether the skill has been published
Skill ID in the registry
ISO-8601 timestamp of publication
ISO-8601 timestamp of last sync
Number of community installs
Average community rating
URL to the published skill
Configuration Types
Config
Config
Full configuration for Auto-Skill system.
Pattern detection configuration
Multi-agent support settings
Skill provider configuration
Path to SQLite database, or null for default
Output directory for skills, or null for default
Whether Auto-Skill is enabled
DetectionConfig
DetectionConfig
Configuration for pattern detection behavior.
Minimum occurrences to detect a pattern
Minimum length of tool sequence
Maximum length of tool sequence
How many days back to analyze
Minimum confidence threshold (0-1)
List of tools to ignore in pattern detection
AgentSettings
AgentSettings
ProviderSettings
ProviderSettings
AgentConfig
AgentConfig
Configuration for a known AI coding agent.
Agent identifier
Agent display name
Directory where agent stores skills
Environment variable for agent path
Agent configuration file path
Description of the agent
Store Types
SkillContent
SkillContent
SkillRecord
SkillRecord
Skill metadata record in the index database.
ULID identifier
Skill name
Collection name (e.g., “auto”, “graduated”)
File path to the skill
Foreign key to SkillContent.hash
Skill description
Categorization tags
Confidence score (0-1)
Target agent type, or null for cross-agent
Whether the skill is active
Source URL or origin
Skill author
ISO-8601 timestamp of creation
ISO-8601 timestamp of last update
SearchResult
SearchResult
A skill search result with relevance scoring.Extends all fields from
Relevance score for the search query
SkillRecord.CollectionInfo
CollectionInfo
SearchOptions
SearchOptions
SkillStore
SkillStore
Interface for the content-addressable skill store.Methods:
insertContent()- Insert skill content, returns SHA-256 hashgetContent()- Retrieve content by hashinsertSkill()- Insert skill metadata, returns ULIDupdateSkill()- Update skill metadata fieldsdeactivateSkill()- Mark skill as inactivegetSkill()- Get skill by IDgetSkillByHash()- Get skill by content hashlistSkills()- List skills with optional filterssearchSkills()- Full-text search with relevance scoringgetCollectionStats()- Get statistics for all collectionsvacuumDatabase()- Optimize database storagecleanupOrphanedContent()- Remove unreferenced content, returns count
Validation Types
SpecViolation
SpecViolation
SpecValidationResult
SpecValidationResult
Statistics Types
EventStoreStats
EventStoreStats
SkillTrackerStats
SkillTrackerStats
Statistics from the skill tracker.
Total number of tracked skills
Average confidence score across all skills
Number of graduated skills
Total usage count across all skills
Breakdown of skills by source type
EffectivenessReport
EffectivenessReport
Report on skill effectiveness and performance.
Name of the skill
Number of times used
Success rate (0-1)
Average confidence score
Performance trend over time
Recommendations for improving the skill
Utility Types
OutputFormat
OutputFormat
Output format for CLI rendering.Values:
json- JSON formatcsv- Comma-separated valuesmd- Markdown formatcli- Human-readable CLI format