Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

steedos-environment-variablessteedos 环境变量

Agent Skill

steedos-environment-variables 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

309

周安装

13

GitHub Stars

1,630

下载量

108
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/steedos/steedos-platform --skill steedos-environment-variables

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • steedos-environment-variables 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Steedos Environment Variables | Steedos 环境变量

Overview | 概述

Steedos uses environment variables for configuration. Variables can be defined in .env files or system environment variables.

Steedos 使用环境变量进行配置。变量可以在 .env 文件或系统环境变量中定义。

Loading Priority | 加载优先级

  1. System environment variables (highest priority)
  2. .env.local file
  3. .env file
  4. Default values (lowest priority)

Core Variables | 核心变量

Server Configuration | 服务器配置

# Server port
PORT=5100

# Root URL for the application
ROOT_URL=http://localhost:5100

# Node environment
NODE_ENV=development

Database Configuration | 数据库配置

# MongoDB connection string (for metadata)
MONGO_URL=mongodb://127.0.0.1:27017/steedos

# MongoDB options
MONGO_OPTIONS_POOLSIZE=10

# SQL Database (for business data)
# PostgreSQL
STEEDOS_CFS_STORE=pg
STEEDOS_CFS_STORE_URL=postgres://user:password@localhost:5432/dbname

# MySQL
# STEEDOS_CFS_STORE=mysql
# STEEDOS_CFS_STORE_URL=mysql://user:password@localhost:3306/dbname

Message Queue & Cache | 消息队列和缓存

# Moleculer transporter (for service communication)
TRANSPORTER=redis://127.0.0.1:6379

# Moleculer cacher (for caching)
CACHER=redis://127.0.0.1:6379/1

# Alternative: Use NATS
# TRANSPORTER=nats://127.0.0.1:4222

File Storage | 文件存储

# Local file storage directory
STEEDOS_STORAGE_DIR=./steedos-storage

# Alternative: Use cloud storage
# S3-compatible storage
STEEDOS_CFS_STORE=aws
AWS_ACCESS_KEY_ID=your_key
AWS_SECRET_ACCESS_KEY=your_secret
AWS_S3_BUCKET=your_bucket
AWS_S3_REGION=us-east-1

Logging | 日志配置

# Log level: ⚠️ MUST be one of: trace, debug, info, warn, error, fatal
B6_LOG_LEVEL=warn

# Moleculer log level
LOGGER=true
LOGLEVEL=info

Authentication & Security | 认证和安全

JWT Configuration | JWT 配置

# JWT secret key
JWT_SECRET=your_secret_key_here

# Token expiration (in seconds)
JWT_EXPIRES_IN=86400

API Keys | API 密钥

# API key for external integrations
STEEDOS_API_KEY=your_api_key

CORS Configuration | CORS 配置

# Allowed origins for CORS
STEEDOS_CORS_ORIGIN=http://localhost:3000,http://localhost:3001

Email Configuration | 邮件配置

# SMTP server
MAIL_URL=smtp://user:password@smtp.example.com:587

# Email from address
MAIL_FROM=noreply@example.com

# Alternative: SendGrid
# SENDGRID_API_KEY=your_sendgrid_api_key

Plugin Configuration | 插件配置

# Plugins to install on startup
STEEDOS_PLUGIN_PACKAGES=@steedos-plugins/plugin1,@steedos-plugins/plugin2

# Plugin services to start automatically
STEEDOS_PLUGIN_SERVICES=plugin1,plugin2

Localization | 本地化

# Default locale
DEFAULT_LOCALE=zh-CN

# Available locales
STEEDOS_LOCALES=zh-CN,en-US

Development & Debug | 开发和调试

# Enable debug mode
DEBUG=true

# Hot reload
HOT_RELOAD=true

# Developer mode
STEEDOS_DEVELOPER_MODE=true

Production Settings | 生产环境设置

# Node environment
NODE_ENV=production

# Disable hot reload
HOT_RELOAD=false

# Minimize logs
B6_LOG_LEVEL=error
LOGLEVEL=error

# Enable clustering
STEEDOS_CLUSTER=true

Complete.env Example | 完整.env 示例

Development Environment | 开发环境

# Server
PORT=5100
ROOT_URL=http://localhost:5100
NODE_ENV=development

# Database
MONGO_URL=mongodb://127.0.0.1:27017/steedos

# Message Queue & Cache
TRANSPORTER=redis://127.0.0.1:6379
CACHER=redis://127.0.0.1:6379/1

# Storage
STEEDOS_STORAGE_DIR=./steedos-storage

# Logging
B6_LOG_LEVEL=warn
LOGLEVEL=info

# Security
JWT_SECRET=development_secret_key_change_in_production

# Email (optional)
# MAIL_URL=smtp://user:password@smtp.gmail.com:587

# Development
DEBUG=true
HOT_RELOAD=true
STEEDOS_DEVELOPER_MODE=true

Production Environment | 生产环境

# Server
PORT=80
ROOT_URL=https://app.example.com
NODE_ENV=production

# Database
MONGO_URL=mongodb://user:password@mongo.example.com:27017/steedos?authSource=admin
MONGO_OPTIONS_POOLSIZE=20

# SQL Database (optional)
STEEDOS_CFS_STORE=pg
STEEDOS_CFS_STORE_URL=postgres://user:password@postgres.example.com:5432/steedos

# Message Queue & Cache
TRANSPORTER=redis://:password@redis.example.com:6379
CACHER=redis://:password@redis.example.com:6379/1

# Cloud Storage
STEEDOS_CFS_STORE=aws
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_S3_BUCKET=my-app-storage
AWS_S3_REGION=us-east-1

# Logging
B6_LOG_LEVEL=error
LOGLEVEL=error

# Security
JWT_SECRET=production_strong_secret_key_min_32_chars
JWT_EXPIRES_IN=86400

# Email
MAIL_URL=smtp://user:password@smtp.example.com:587
MAIL_FROM=noreply@example.com

# Performance
STEEDOS_CLUSTER=true

# Features
STEEDOS_DEVELOPER_MODE=false
HOT_RELOAD=false

Environment-Specific Files | 环境特定文件

Using Multiple.env Files

# Development
.env.development

# Production
.env.production

# Local overrides
.env.local

Loading Specific Environment

# Linux/Mac
NODE_ENV=production npm start

# Windows
set NODE_ENV=production && npm start

Docker Configuration | Docker 配置

docker-compose.yml Example

version: '3'
services:
  steedos:
    image: steedos/steedos-community:latest
    ports:
      - "5100:5100"
    environment:
      - PORT=5100
      - ROOT_URL=http://localhost:5100
      - MONGO_URL=mongodb://mongo:27017/steedos
      - TRANSPORTER=redis://redis:6379
      - CACHER=redis://redis:6379/1
    depends_on:
      - mongo
      - redis

  mongo:
    image: mongo:4.4
    ports:
      - "27017:27017"
    volumes:
      - mongo_data:/data/db

  redis:
    image: redis:6-alpine
    ports:
      - "6379:6379"

volumes:
  mongo_data:

Security Best Practices | 安全最佳实践

1. Never Commit Secrets

# .gitignore
.env
.env.local
.env.*.local

2. Use Strong Secrets

# Bad
JWT_SECRET=secret

# Good
JWT_SECRET=8f4e7d3c2a1b9f8e7d6c5b4a3f2e1d0c9b8a7f6e5d4c3b2a1f0e9d8c7b6a5f4e3

3. Rotate Keys Regularly

Update JWT_SECRET and API keys periodically.

4. Use Environment-Specific Values

Don't use the same secrets across environments.

5. Limit Access

Restrict who can access production environment variables.

Validation & Troubleshooting | 验证和故障排除

Check Environment Variables

// In Node.js code
console.log('PORT:', process.env.PORT);
console.log('MONGO_URL:', process.env.MONGO_URL);

Common Issues

Issue: Variables not loading

Solution:

  1. Check file name is .env (not env.txt)
  2. Ensure file is in project root
  3. Restart server after changes
  4. Check for typos in variable names

Issue: Database connection fails

Solution:

  1. Verify MongoDB is running
  2. Check MONGO_URL format
  3. Test connection: mongo mongodb://127.0.0.1:27017/steedos
  4. Check network/firewall

Issue: Redis connection fails

Solution:

  1. Verify Redis is running: redis-cli ping
  2. Check TRANSPORTER and CACHER URLs
  3. Test connection: redis-cli -h 127.0.0.1 -p 6379 ping

Variable Reference Table | 变量参考表

VariableTypeDefaultDescription
PORTNumber5100Server port
ROOT_URLString-Application URL
MONGO_URLString-MongoDB connection
TRANSPORTERString-Message queue
CACHERString-Cache store
STEEDOS_STORAGE_DIRString./storageFile storage path
B6_LOG_LEVELStringwarnLog level
JWT_SECRETString-JWT secret key
NODE_ENVStringdevelopmentEnvironment

References | 参考资料

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

38.02%
按下载量换算41

Claude

28.62%
按下载量换算31

Cursor

19.74%
按下载量换算21

Gemini CLI

8.8%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills