stacks-auto-imports

Manage Stacks framework global auto-import configuration and type generation.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-auto-imports-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-auto-imports
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-auto-imports
Command: npx skills add https://github.com/bughq/bughq --skill stacks-auto-imports-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves the complexity of managing global imports in the Stacks framework, ensuring developers understand how functions, models, and composables are injected into the browser and server environments.

Core Features & Use Cases

  • Auto-Import Configuration: Manage and debug the auto-import pipeline for functions, models, and composables.
  • Type Generation: Maintain accurate type declarations for global identifiers to ensure IDE support and build-time safety.
  • Use Case: When adding a new utility function to the project, use this Skill to correctly register it in the auto-import barrel, inject it into globalThis, and regenerate the necessary type definitions.

Quick Start

Use the stacks-auto-imports skill to guide you through the process of registering a new custom function in the auto-import pipeline.

Frequently Asked Questions about stacks-auto-imports

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure global auto-imports for functions and composables in the Stacks framework?

The Stacks auto-import system works by registering functions, models, and composables into a pipeline that injects them globally at runtime, providing build-time type safety across browser and server contexts.

How do I register a new utility function in the Stacks auto-import pipeline?

Registering a new utility function involves adding it to the auto-import barrel, injecting it into globalThis, and regenerating type definitions to maintain accurate build-time type safety.

How do I generate TypeScript types for auto-imported Stacks globals?

Type generation for Stacks auto-imports creates accurate type declarations for global identifiers, ensuring build-time type safety and IDE support for all injected functions and models.

Does the Stacks auto-import system work for both browser and server contexts?

Yes, the Stacks auto-import system facilitates the registration of functions, models, and composables across both browser and server contexts for runtime global injection.

Why are my Stacks global auto-imports missing type definitions in my IDE?

Missing type definitions typically occur when the type generation process has not been run, or the global identifier is not correctly registered in the auto-import barrel.