Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

firebase-storageFirebase storage 搜索

Agent Skill

firebase-storage 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

537

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:firebase-storage(Firebase storage 搜索)
来源仓库:https://github.com/evanca/flutter-ai-rules
仓库路径:skills/firebase-storage
安装命令:
npx skills add https://github.com/evanca/flutter-ai-rules --skill firebase-storage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/evanca/flutter-ai-rules --skill firebase-storage

简介

firebase-storage 指导 Flutter 应用正确使用 Firebase Cloud Storage 进行文件上传下载。

  • 适用于图片、文档等资源的存储管理场景,提供元数据管理和进度监控实现方案。
  • 使用时需初始化 storage 实例、处理上传/下载任务,并妥善管理访问权限和错误情况。
  • 安装前请确认仓库权限和维护状态,涉及用户生成内容时应注意隐私保护和访问控制。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Firebase Cloud Storage Skill

This skill defines how to correctly use Firebase Cloud Storage in Flutter applications.

When to Use

Use this skill when:

  • Setting up Cloud Storage in a Flutter project.
  • Uploading or downloading files.
  • Managing file metadata.
  • Handling Storage errors and monitoring upload progress.

1. Setup and Configuration

flutter pub add firebase_storage
import 'package:firebase_storage/firebase_storage.dart';

final storage = FirebaseStorage.instance;
// Or specify a bucket explicitly:
// final storage = FirebaseStorage.instanceFor(bucket: "gs://BUCKET_NAME");
  • Firebase Storage requires the Blaze (pay-as-you-go) plan.
  • Run flutterfire configure to update your Firebase config with the default Storage bucket name.
Security note: By default, a Cloud Storage bucket requires Firebase Authentication for any action. Configuring public access may also make App Engine files publicly accessible — restrict access again when you set up Authentication.

2. File Operations

Create a reference:

final storageRef = FirebaseStorage.instance.ref();
final fileRef = storageRef.child("uploads/file.jpg");

Upload:

final uploadTask = fileRef.putFile(file);
final snapshot = await uploadTask;
final downloadUrl = await snapshot.ref.getDownloadURL();

Download (in-memory):

final data = await fileRef.getData();

Download URL:

final downloadUrl = await fileRef.getDownloadURL();

Delete:

await fileRef.delete();

3. Metadata Management

Get metadata:

final metadata = await fileRef.getMetadata();
print('Content type: ${metadata.contentType}');
print('Size: ${metadata.size}');

Update metadata:

final newMetadata = SettableMetadata(
  contentType: "image/jpeg",
  customMetadata: {'uploaded_by': 'user123'},
);
await fileRef.updateMetadata(newMetadata);

Use custom metadata to store additional key/value pairs with your files.


4. Error Handling

Use try-catch with FirebaseException. Key error codes:

CodeMeaning
storage/object-not-foundFile doesn't exist at the reference
storage/bucket-not-foundNo bucket configured for Cloud Storage
storage/project-not-foundNo project configured for Cloud Storage
storage/quota-exceededStorage quota exceeded
storage/unauthenticatedUser needs to authenticate
storage/unauthorizedUser lacks permission
storage/retry-limit-exceededOperation timeout exceeded
  • For quota-exceeded on the Spark plan, upgrade to Blaze.
  • Implement retry logic for network-related errors and timeouts.

5. Performance and Best Practices

Monitor upload progress:

final uploadTask = fileRef.putFile(file);
uploadTask.snapshotEvents.listen((TaskSnapshot snapshot) {
  print('Progress: ${(snapshot.bytesTransferred / snapshot.totalBytes) * 100}%');
});
  • Cancel uploads with uploadTask.cancel().
  • Pause / resume with uploadTask.pause() and uploadTask.resume().
  • Optimize file sizes before upload to reduce costs and improve performance.
  • Use Cloud Storage with Firestore for comprehensive data management.
  • Use the Firebase Local Emulator Suite for local development and testing.

6. Security

  • Use Firebase Security Rules to control access to files.
  • Combine Storage rules with Firebase Authentication for user-based access control.
  • Test security rules thoroughly before deploying to production.

References

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.42%
按下载量换算28

Claude

30.35%
按下载量换算22

Cursor

18.25%
按下载量换算13

Gemini CLI

8.55%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills