firebase-development-add-feature
安全地添加 Firebase 功能
在项目模式不清晰时,添加 Firebase 功能可能会破坏测试、规则或身份验证。此技能将指导一种测试优先的工作流,覆盖 Cloud Functions、Firestore 集合、API 端点和模拟器验证。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "firebase-development-add-feature" from https://skillstore.io/skills/2389-research-firebase-development-add-feature.md and its manifest at https://skillstore.io/api/skills/2389-research-firebase-development-add-feature/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“firebase-development-add-feature”。 添加一个为已登录用户创建任务的端点。
预期结果:
助手会识别端点类型,编写失败的测试,添加处理器,检查身份验证,更新导出,并通过单元测试和模拟器测试进行验证。
正在使用“firebase-development-add-feature”。 创建一个用户可以读取但只有函数可以写入的 projectInvites 集合。
预期结果:
助手会提出仅服务器写入的规则,添加集合测试,检查索引,并在 Firebase 模拟器中验证工作流。
正在使用“firebase-development-add-feature”。 添加一个用于过期记录的定时清理函数。
预期结果:
助手会创建测试计划,实现 scheduled 处理器,遵循响应约定,并运行构建和测试验证。
安全审计
安全The static findings are false positives caused by Markdown backticks, local command examples, a localhost emulator URL, a relative import, and ordinary test strings in SKILL.md. No prompt injection, credential access, data exfiltration, or unsafe filesystem behavior was found.
风险因素
⚙️ 外部命令 (42)
🌐 网络访问 (2)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/2389-research-firebase-development-add-feature/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/2389-research-firebase-development-add-feature?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/2389-research-firebase-development-add-feature?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/2389-research-firebase-development-add-feature/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/2389-research-firebase-development-add-feature.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 引用
2389-research. (2026). firebase-development-add-feature security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/2389-research-firebase-development-add-feature/audits/9BibTeX 引用
@techreport{2389-research-2389-research-firebase-development-add-feature-2026,
author = {2389-research},
title = {firebase-development-add-feature security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/2389-research-firebase-development-add-feature/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "firebase-development-add-feature security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "2389-research"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/2389-research-firebase-development-add-feature/audits/9"
identifiers:
- type: other
value: "skillstore:2389-research-firebase-development-add-feature:audit:9"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
添加 Cloud Function
通过测试和导出实现新的 HTTP、callable、scheduled 或基于触发器的函数。
创建 Firestore 集合
添加包含安全规则、索引、验证和模拟器检查的集合。
扩展 API 表面
添加遵循项目响应模式和测试约定的已认证端点。
试试这些提示
添加一个处理 [task] 的 Firebase Cloud Function。遵循项目模式,先编写失败的测试,然后实现它。
为 [entity] 创建 Firestore 集合。包括安全规则、必要的索引、测试和模拟器验证。
为 [operation] 添加已认证的 API 端点。匹配现有身份验证模型,并返回标准成功或错误响应。
跨 Cloud Functions 和 Firestore 实现 [feature]。从失败的测试开始,更新规则和索引,然后在模拟器中验证完整工作流。
最佳实践
- 在更改实现代码之前,先编写失败的单元测试。
- 匹配现有项目架构、身份验证模型和响应约定。
- 在标记工作完成前,使用 Firebase 模拟器验证规则和端到端行为。
避免
- 添加 Firestore 写入时没有匹配的身份验证和所有权规则。
- 在更改函数、规则或索引后跳过模拟器测试。
- 在实现后更改测试,以掩盖损坏或不完整的功能。
常见问题
此技能会创建新的 Firebase 项目吗?
它能帮助处理 Firestore 安全规则吗?
它要求测试优先开发吗?
它涵盖哪些 Firebase 功能?
它会使用模拟器验证工作吗?
它是调试技能吗?
开发者详情
许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
仓库
https://github.com/2389-research/claude-plugins/tree/main/firebase-development/skills/add-feature引用
0519034dad657fb1f7706e0550e962beeda73fdf
维护新鲜度
2026/7/18
使用量
7 次下载 · 166 次浏览
文件结构
📄 SKILL.md