extension-core-infrastructure
Build Caffeine AI Core Infrastructure
Connecting React applications to Internet Computer backends requires coordinated authentication, actor, query, and storage setup. This skill provides proven integration and migration guidance for that foundation.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "extension-core-infrastructure" from https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure.md and its manifest at https://skillstore.io/api/skills/caffeinelabs-extension-core-infrastructure/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“extension-core-infrastructure”。 Explain which authentication state should control protected UI after a page reload.
预期结果:
Use isAuthenticated for protected UI. A restored session can be authenticated while the interactive login success state remains false.
正在使用“extension-core-infrastructure”。 Summarize the v1 dependency migration.
预期结果:
- Remove direct legacy DFINITY dependencies.
- Add the documented ICP SDK authentication and core packages.
- Update imports to the corresponding ICP SDK subpaths.
- Change the Vite deduplication target to the ICP SDK core package.
正在使用“extension-core-infrastructure”。 What happens to backend actors after login or logout?
预期结果:
The actor is recreated with the new identity. Dependent queries are then invalidated and fetched again.
安全审计
低风险All 38 static findings are false positives. The command findings are Markdown formatting, the URL is a documentation link, and the reconnaissance hit is a documented boolean. A low-severity privacy concern remains because verified email is requested by default unless applications opt out.
已确认安全问题 (1)
风险因素
⚙️ 外部命令 (36)
🌐 网络访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/caffeinelabs-extension-core-infrastructure/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/caffeinelabs-extension-core-infrastructure.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
caffeinelabs. (2026). extension-core-infrastructure security audit report (audit version 1) [Author version 1.1.0]. Skillstore. https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure/audits/1BibTeX 引用
@techreport{caffeinelabs-caffeinelabs-extension-core-infrastructure-2026,
author = {caffeinelabs},
title = {extension-core-infrastructure security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure/audits/1},
note = {Author version 1.1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "extension-core-infrastructure security audit report (audit version 1)"
version: "1.1.0"
type: report
authors:
- name: "caffeinelabs"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/caffeinelabs-extension-core-infrastructure/audits/1"
identifiers:
- type: other
value: "skillstore:caffeinelabs-extension-core-infrastructure:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Configure a New Frontend
Set up shared providers, authentication state, and typed backend access for a new Caffeine AI React application.
Upgrade an Existing Application
Replace legacy DFINITY packages, update imports, adjust Vite deduplication, and review the new attribute verification default.
Review Authentication Architecture
Verify UI gating, login lifecycle handling, actor recreation, and dependent query refresh behavior.
试试这些提示
Explain how this core infrastructure supports authentication, backend actors, React Query, and storage dependencies. Define each component for a new React developer.
Create an integration plan for my React application using this skill. Include dependencies, provider order, authentication states, actor loading, and verification steps.
Review my authentication flow against this skill. Identify incorrect use of login success, missing initialization handling, and unsafe authenticated UI gating.
Design a v0 to v1 migration for my project. Map dependencies and imports, assess verified email requirements, update Vite deduplication, and define tests.
最佳实践
- Gate protected interfaces with the authenticated state, including after stored session restoration.
- Disable login actions while identity initialization or interactive login is active.
- Decide whether verified email is necessary before accepting the provider default.
避免
- Do not use interactive login success as the persistent authentication signal.
- Do not add local pending state around the fire-and-forget login and clear functions.
- Do not keep legacy DFINITY dependencies beside their ICP SDK replacements.
常见问题
Is manual integration required?
Which state should protect authenticated content?
Should login and clear be awaited?
When is the backend actor available?
Does v1 request identity attributes?
What changes during the v1 migration?
开发者详情
作者
caffeinelabs许可证
MIT
作者版本
v1.1.0
Skillstore 修订
r1
引用
f32f934280aa94e399d875d7cf7b2ed16d1b82a3
维护新鲜度
2026/7/23
使用量
0 次下载 · 0 次浏览
文件结构