extension-core-infrastructure

Configure backend connections and authentication for Caffeine AI web apps.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/caffeinelabs/skills --skill extension-core-infrastructure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extension-core-infrastructure
Source: https://github.com/caffeinelabs/skills/tree/main/skills/extension-core-infrastructure
Command: npx skills add https://github.com/caffeinelabs/skills --skill extension-core-infrastructure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the need to manually configure backend connections, storage clients, and authentication hooks for every Caffeine AI project, letting developers focus on business logic.

Core Features & Use Cases

  • Backend configuration: automatic setup of canister connections and storage clients.
  • Internet Identity authentication: hooks like useInternetIdentity for login state management.
  • Actor management: useActor hook creates typed backend actors that react to identity changes.
  • React app entry: wraps the application with InternetIdentityProvider and QueryClientProvider out of the box. Use case: When starting a new Caffeine AI web app, include this Skill to instantly have authentication and backend connectivity ready.

Quick Start

Ask the AI to initialize a new project with core infrastructure and wrap the root component with the required providers.

Frequently Asked Questions about extension-core-infrastructure

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

FAQPage Schema
How do I set up Internet Identity authentication in a React app?

To set up Internet Identity authentication in a React app, use the useInternetIdentity hook to manage login state and wrap your root component with the InternetIdentityProvider to automatically handle identity state changes.

How do I connect a React frontend to a backend canister?

Connecting a React frontend to a backend canister involves using the useActor hook to create typed backend actors that react to identity changes, which automatically configures the necessary storage clients and canister connections.

Do I need to manually configure backend connections for Caffeine AI projects?

You do not need to manually configure backend connections for Caffeine AI projects, as this setup is handled automatically by applying the core infrastructure package to manage storage clients and typed backend actors.

How do I integrate React Query with Internet Identity providers?

Integrating React Query with Internet Identity involves wrapping your application with the QueryClientProvider and InternetIdentityProvider out of the box, ensuring React query integration works seamlessly with the authentication state.

What is the best way to manage typed backend actors that react to identity changes?

The best way to manage typed backend actors that react to identity changes is using the useActor hook, which creates actor instances that automatically update whenever the Internet Identity login state changes.

Can I use this core infrastructure setup for any web project requiring login?

You can apply this setup to web projects that specifically require Internet Identity login, storage client setup, and React query integration, ensuring automatic management of identity state and actor instances.