Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计异常

temps-platform-setup临时平台设置

Agent Skill

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

总安装

618

周安装

25

GitHub Stars

419

下载量

194
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gotempsh/temps --skill temps-platform-setup

简介

temps-platform-setup 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于平台初始化、环境配置和部署流程搭建场景。
  • 可识别 Docker、Kubernetes 和 CI/CD 配置文件结构。
  • 安装命令:npx skills add https://github.com/gotempsh/temps --skill temps-platform-setup。
  • 使用前需确认权限范围、维护状态及是否触发文件读写或命令执行操作。

SKILL.md

Temps Platform Setup & Management

Complete guide for installing and managing the Temps self-hosted deployment platform.

Table of Contents


Overview

Temps is a self-hosted deployment platform with built-in analytics, monitoring, and error tracking. It deploys any application from Git with zero configuration.

Key Features:

  • Deploy frontend, backend, and static sites from Git
  • Built-in analytics, funnels, session replay
  • Error tracking (Sentry-compatible)
  • Uptime monitoring
  • Automatic TLS certificates via Let's Encrypt
  • PostgreSQL, Redis, MongoDB, S3 service provisioning
  • Container orchestration with Docker

Supported Languages:

  • Frontend: React, Next.js, Vue, Svelte, Angular
  • Backend: Node.js, Python, Go, Rust, Ruby, PHP
  • Static: Hugo, Jekyll, Gatsby
  • Custom: Any application with a Dockerfile

Installation Methods

Method 1: Install Script (Recommended)

# Download and install Temps binary
curl -fsSL https://temps.sh/deploy.sh | bash

# Reload shell configuration
source ~/.zshrc  # or ~/.bashrc for bash users

What it does:

  • Downloads the latest Temps binary
  • Installs to ~/.temps/bin/
  • Adds to PATH in your shell configuration
  • Verifies installation

Verify installation:

temps --version

Method 2: Docker Compose (Production)

For production deployments with PostgreSQL and Redis:

# Clone the repository
git clone https://github.com/gotempsh/temps.git
cd temps

# Start with Docker Compose
docker-compose up -d

Docker Compose includes:

  • Temps application server
  • PostgreSQL 18 + TimescaleDB
  • Redis for caching
  • Automatic health checks
  • Volume persistence

Access the application:

Method 3: From Source (Development)

# Prerequisites: Rust 1.70+, PostgreSQL, Bun
git clone https://github.com/gotempsh/temps.git
cd temps

# Build Rust backend
cargo build --release --bin temps

# Build web console (optional)
cd web
bun install
RSBUILD_OUTPUT_PATH=../crates/temps-cli/dist bun run build
cd ..

# Run migrations and start
./target/release/temps serve \
  --database-url "postgresql://user:pass@localhost:5432/temps"

Quick Start

1. Start PostgreSQL Database

Temps requires PostgreSQL 14+ with TimescaleDB extension.

Using Docker (easiest):

# Create persistent volume
docker volume create temps-postgres

# Start PostgreSQL + TimescaleDB
docker run -d \
  --name temps-postgres \
  -v temps-postgres:/home/postgres/pgdata/data \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=temps \
  -e POSTGRES_DB=temps \
  -p 16432:5432 \
  timescale/timescaledb-ha:pg18

Connection string:

postgresql://postgres:temps@localhost:16432/temps

2. Run Temps Setup

The setup command initializes the database, creates admin user, and configures DNS/TLS:

temps setup \
  --database-url "postgresql://postgres:temps@localhost:16432/temps" \
  --admin-email "your-email@example.com" \
  --wildcard-domain "*.yourdomain.com" \
  --github-token "ghp_xxxxxxxxxxxx" \
  --dns-provider "cloudflare" \
  --cloudflare-token "your-cloudflare-api-token"

Setup options:

OptionDescriptionRequired
--database-urlPostgreSQL connection string✅ Yes
--admin-emailAdmin user email✅ Yes
--wildcard-domainDomain for deployments (e.g., *.temps.sh)Optional
--github-tokenGitHub personal access tokenOptional
--dns-providerDNS provider (cloudflare, route53, digitalocean)Optional
--cloudflare-tokenCloudflare API tokenIf using Cloudflare
--route53-access-keyAWS access keyIf using Route53
--route53-secret-keyAWS secret keyIf using Route53

What setup does:

  1. Runs database migrations
  2. Installs TimescaleDB extension
  3. Creates admin user with API token
  4. Configures DNS provider for automatic DNS records
  5. Sets up Let's Encrypt ACME account for TLS certificates
  6. Creates encryption keys for secure storage
  7. Displays admin API token (save this!)

3. Start Temps Server

temps serve \
  --database-url "postgresql://postgres:temps@localhost:16432/temps" \
  --address 0.0.0.0:80 \
  --tls-address 0.0.0.0:443 \
  --console-address 0.0.0.0:8081

Server options:

OptionDescriptionDefaultEnvironment Variable
--addressHTTP API address127.0.0.1:3000TEMPS_ADDRESS
--tls-addressHTTPS address (proxy)-TEMPS_TLS_ADDRESS
--console-addressAdmin console address-TEMPS_CONSOLE_ADDRESS
--database-urlPostgreSQL URL-TEMPS_DATABASE_URL
--data-dirData directory~/.tempsTEMPS_DATA_DIR

Access points:

4. Access the Console

Open the console in your browser:

# If running locally
open http://localhost:8081

# If running on server with domain
open https://temps.yourdomain.com

First login:

  • Email: The email you provided during setup
  • API Token: The token displayed after temps setup (check terminal output)

CLI Setup

The Temps CLI lets you manage projects, deployments, and services from the command line.

Installation

Option 1: Run without installing (recommended for CI/CD)

# Using npx
npx @temps-sdk/cli --version

# Using bunx (faster)
bunx @temps-sdk/cli --version

Option 2: Install globally

# Using npm
npm install -g @temps-sdk/cli

# Using bun
bun add -g @temps-sdk/cli

# Verify installation
temps --version

Authentication

Interactive login:

temps login

You'll be prompted for:

  • API URL: Your Temps server URL (e.g., https://temps.yourdomain.com or http://localhost:3000)
  • API Token: The token from temps setup output

Non-interactive login (CI/CD):

temps login --api-key tk_abc123def456 -u https://temps.yourdomain.com

Using environment variables:

# Set environment variables
export TEMPS_API_URL="https://temps.yourdomain.com"
export TEMPS_TOKEN="tk_abc123def456"

# Commands will use these automatically
temps projects list

Verify authentication:

temps whoami

Example output:

  Logged in as: admin@example.com
  Role: Admin
  API URL: https://temps.yourdomain.com

Configuration

The CLI stores configuration in ~/.temps/:

# View current configuration
temps configure show

# Set API URL
temps configure set apiUrl https://temps.yourdomain.com

# Set output format (table, json, minimal)
temps configure set outputFormat table

# List all settings
temps configure list

# Reset to defaults
temps configure reset

Configuration files:

  • Config: ~/.temps/config.json (API URL, output format)
  • Credentials: ~/.temps/.secrets (API tokens, mode 0600)

Environment variables (override config):

VariableDescription
TEMPS_API_URLOverride API endpoint
TEMPS_TOKENAPI token (highest priority)
TEMPS_API_TOKENAPI token (CI/CD)
TEMPS_API_KEYAPI key
NO_COLORDisable colored output

Initial Configuration

Create Your First Project

# Create a project
temps projects create my-app

# Or interactively
temps projects create

You'll be prompted for:

  • Project name
  • Git provider (GitHub, GitLab, Bitbucket)
  • Repository URL
  • Main branch (default: main)

Connect Git Provider

To deploy from Git, connect a provider:

GitHub:

temps git-providers add github \
  --name "My GitHub" \
  --token "ghp_xxxxxxxxxxxx"

Get GitHub token:

  1. Go to https://github.com/settings/tokens
  2. Create a personal access token (classic)
  3. Required scopes: repo, read:org

GitLab:

temps git-providers add gitlab \
  --name "My GitLab" \
  --token "glpat-xxxxxxxxxxxx" \
  --url "https://gitlab.com"  # or self-hosted URL

List providers:

temps git-providers list

Create Environment

Environments isolate deployments (production, staging, development):

# Create production environment
temps environments create production

# Create with resource limits
temps environments create staging \
  --cpu 0.5 \
  --memory 512Mi \
  --replicas-min 1 \
  --replicas-max 3

List environments:

temps environments list

Set Environment Variables

# Set a variable
temps env set DATABASE_URL="postgresql://..." \
  --environment production \
  --project my-app

# Set from .env file
temps env import .env \
  --environment production \
  --project my-app

# List variables
temps env list \
  --environment production \
  --project my-app

Secure secrets:

  • All environment variables are encrypted at rest
  • API keys and tokens are masked in UI
  • Only the application runtime can decrypt values

Platform Management

User Management

Create additional admin users:

# Create user via CLI
temps users create \
  --email "developer@example.com" \
  --role admin

# Or create via console UI
# Navigate to Settings → Users → Create User

User roles:

  • Admin: Full platform access, can create users
  • User: Can create projects and deploy applications
  • Viewer: Read-only access

List users:

temps users list

API Keys & Tokens

Create API token:

temps tokens create \
  --name "CI/CD Token" \
  --expires-in 90d

Create API key:

temps api-keys create \
  --name "Production API Key" \
  --permissions deployments.read,deployments.create

List tokens:

temps tokens list

Service Provisioning

Temps can provision PostgreSQL, Redis, MongoDB, and S3 services:

PostgreSQL:

temps services create postgres \
  --name my-database \
  --version 16 \
  --storage 10Gi

Redis:

temps services create redis \
  --name my-cache \
  --version 7

S3 (MinIO):

temps services create s3 \
  --name my-storage \
  --storage 20Gi

List services:

temps services list

Connection strings:

Services automatically create connection strings available as environment variables:

  • PostgreSQL: DATABASE_URL
  • Redis: REDIS_URL
  • S3: S3_ENDPOINT, S3_ACCESS_KEY, S3_SECRET_KEY, S3_BUCKET

Monitoring & Logs

View deployment logs:

# Stream logs
temps logs --deployment-id 123 --follow

# Show last 100 lines
temps logs --deployment-id 123 --tail 100

View container logs:

temps containers logs container-abc123 --follow

Monitor deployments:

# List deployments
temps deployments list --project my-app

# Show deployment status
temps deployments show 123

Backups

Create backup schedule:

temps backups create \
  --service postgres-123 \
  --schedule "0 2 * * *"  # Daily at 2 AM

Manual backup:

temps backups run --service postgres-123

List backups:

temps backups list --service postgres-123

Restore backup:

temps backups restore backup-456 \
  --target postgres-123

DNS & TLS Setup

DNS Providers

Temps supports automatic DNS record management:

Cloudflare:

temps dns-providers add cloudflare \
  --token "your-cloudflare-api-token" \
  --zone-id "your-zone-id"

AWS Route53:

temps dns-providers add route53 \
  --access-key-id "AKIAIOSFODNN7EXAMPLE" \
  --secret-access-key "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
  --region "us-east-1"

DigitalOcean:

temps dns-providers add digitalocean \
  --token "dop_v1_xxxxxxxxxxxx"

List providers:

temps dns-providers list

Custom Domains

Add custom domain to project:

temps domains add example.com \
  --project my-app \
  --environment production

Add wildcard domain:

temps domains add "*.example.com" \
  --project my-app \
  --environment production

Verify DNS challenge (for TLS certificate):

temps domains verify example.com

What happens:

  1. Temps creates DNS records via configured provider
  2. Requests Let's Encrypt certificate via ACME
  3. Completes DNS-01 challenge automatically
  4. Issues certificate and configures TLS
  5. Auto-renews 30 days before expiration

Check domain status:

temps domains list --project my-app

TLS Certificates

Certificate orders:

# List certificate orders
temps certificates list

# Show certificate details
temps certificates show cert-123

# Force renewal
temps certificates renew cert-123

Manual DNS challenge (if auto DNS fails):

# Start certificate order
temps domains add example.com --project my-app

# Get DNS challenge records
temps certificates challenge cert-123

# Add records manually to your DNS provider
# Then complete challenge
temps certificates complete cert-123

**Self-hosted behind NAT/firewall with *.temps.dev subdomain:**

If your Temps instance is behind NAT or a firewall and cannot receive HTTP-01 challenges on port 80, use acme.sh with @temps-sdk/cli cloud ACME commands for DNS-01 validation. This lets you provision TLS certificates for your *.temps.dev subdomain without exposing port 80. The flow uses temps cloud acme (from @temps-sdk/cli) to manage DNS records and temps domain import (server-side Rust binary) to load the certificate into Temps.

See the Cloud ACME Certificates (acme.sh) section in the Temps CLI reference for the complete setup guide, including the DNS hook script and step-by-step certificate flow.


Troubleshooting

Database Connection Issues

Error: Failed to connect to database

Solution:

# Verify PostgreSQL is running
docker ps | grep postgres

# Test connection
psql "postgresql://postgres:temps@localhost:16432/temps" -c "SELECT version();"

# Check database URL format
temps serve --database-url "postgresql://user:password@host:port/database"

Port Already in Use

Error: Address already in use (os error 48)

Solution:

# Find process using port 3000
lsof -i :3000

# Kill process
kill -9 <PID>

# Or use different port
temps serve --address 0.0.0.0:3001

TLS Certificate Issues

Error: Failed to obtain TLS certificate

Solutions:

  1. Check DNS propagation:
# Verify DNS records exist
dig example.com
dig _acme-challenge.example.com TXT
  1. Verify DNS provider credentials:
temps dns-providers list
  1. Check rate limits:

- Let's Encrypt: 50 certs per registered domain per week - Use staging environment for testing: --acme-staging

  1. Manual DNS challenge:
# Get challenge record
temps certificates challenge cert-123

# Add TXT record manually
# _acme-challenge.example.com TXT "challenge-value"

# Complete after DNS propagation (60s+)
temps certificates complete cert-123

Deployment Failures

Error: Build failed

Debug steps:

  1. Check build logs:
temps logs --deployment-id 123
  1. Verify build command:
# Test locally
npm run build  # or your build command
  1. Check environment variables:
temps env list --project my-app --environment production
  1. Test Docker build locally:
docker build -t test-image .
docker run -p 3000:3000 test-image

Service Connection Issues

Error: Service postgres-123 not reachable

Solution:

# Check service status
temps services show postgres-123

# Verify service is running
temps containers list | grep postgres-123

# Check service logs
temps containers logs <container-id>

# Restart service
temps services restart postgres-123

CLI Authentication Issues

Error: Unauthorized (401)

Solution:

# Verify token is valid
temps whoami

# Re-login
temps logout
temps login

# Or use environment variable
export TEMPS_TOKEN="tk_your_token_here"
temps whoami

MaxMind GeoLite2 Database Missing

Error: GeoLite2-City.mmdb not found

Solution:

The analytics feature requires MaxMind GeoLite2 database for IP geolocation.

  1. Download GeoLite2-City database:

- Sign up at https://www.maxmind.com/en/geolite2/signup - Download GeoLite2-City database (GZIP format)

  1. Extract and place:
# Extract
tar xzf GeoLite2-City_*.tar.gz

# Copy to Temps data directory
cp GeoLite2-City_*/GeoLite2-City.mmdb ~/.temps/

# Or specify custom path
temps serve --data-dir /path/to/data
  1. Verify:
ls -lh ~/.temps/GeoLite2-City.mmdb

Note: Temps works without this database, but geolocation features will be disabled.


Quick Reference

Common Commands

# Platform
temps setup --database-url "postgres://..." --admin-email "admin@example.com"
temps serve --database-url "postgres://..." --address 0.0.0.0:80

# CLI
temps login
temps projects list
temps deployments list

# Projects
temps projects create my-app
temps env set KEY=value --project my-app --environment production

# Services
temps services create postgres --name mydb --version 16
temps services list

# Domains
temps domains add example.com --project my-app
temps domains verify example.com

# Monitoring
temps logs --deployment-id 123 --follow
temps deployments show 123

Configuration Files

FilePurposeLocation
config.jsonCLI configuration~/.temps/config.json
.secretsAPI tokens~/.temps/.secrets
encryption_keyEncryption key~/.temps/encryption_key
GeoLite2-City.mmdbGeolocation database~/.temps/GeoLite2-City.mmdb

Environment Variables

VariablePurposeExample
TEMPS_DATABASE_URLPostgreSQL connectionpostgresql://user:pass@localhost:5432/temps
TEMPS_ADDRESSHTTP API address0.0.0.0:3000
TEMPS_TLS_ADDRESSHTTPS proxy address0.0.0.0:443
TEMPS_CONSOLE_ADDRESSAdmin console address0.0.0.0:8081
TEMPS_DATA_DIRData directory~/.temps
TEMPS_TOKENCLI API tokentk_abc123def456
TEMPS_API_URLCLI API endpointhttps://temps.example.com

Ports

PortServicePurpose
3000API (default)HTTP API endpoint
80HTTPHTTP traffic (recommended)
443HTTPSTLS-encrypted traffic
8081ConsoleAdmin web console
5432PostgreSQLDatabase (if using Docker)
6379RedisCache (if using Docker)

Next Steps

After installing Temps:

  1. Deploy your first app: See deploy-to-temps skill
  2. Add analytics: See add-react-analytics skill
  3. Set up custom domain: See add-custom-domain skill
  4. Configure MCP: See temps-mcp-setup skill

Documentation:


License: Dual-licensed under MIT or Apache 2.0

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.67%
按下载量换算71

Claude

26.87%
按下载量换算52

Cursor

19.7%
按下载量换算38

Gemini CLI

8.57%
按下载量换算17

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills