Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

dayuse-commands日用命令

Agent Skill

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

总安装

238

周安装

10

GitHub Stars

2

下载量

83
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dayuse-labs/skills-portfolio --skill dayuse-commands

简介

dayuse-commands 管理 Dayuse.com 项目的本地开发命令,全部通过 pipenv run inv 前缀执行 Python Invoke 脚本。

  • 它涵盖 Docker 容器启动、数据库迁移与测试运行等任务,要求 Docker Desktop 与 pipenv 已就绪。
  • 使用时必须使用 pipenv run 前缀以确保正确 Python 环境,避免直接使用 inv 导致版本冲突。
  • 安装前需确认当前目录存在 .venv 与 Pipfile,并确保 Docker 守护进程正在运行。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Dayuse App Commands

Overview

All local development commands for the Dayuse.com project use Python Invoke (prefixed with inv) and must be run through pipenv from the current working directory.

Prerequisites

  • Docker Desktop running
  • pipenv installed (pip install pipenv)

Critical Rules

  1. Always prefix commands with pipenv run to ensure the correct Python environment: pipenv run inv <command>
  2. Docker containers must be running for most commands. If unsure, run pipenv run inv up first.
  3. Never run inv directly without pipenv run — it may use the wrong Python/invoke version.

Quick Reference

ActionCommand
Start everythingpipenv run inv start
Start containers onlypipenv run inv up
Stop containerspipenv run inv stop
Run PHP testspipenv run inv phpunit
Run specific PHP testpipenv run inv phpunit --filter-tests=MyTest
PHPStan analysispipenv run inv phpstan
Fix code stylepipenv run inv cs-fix
Frontend testspipenv run inv front-web-test
DB migrationpipenv run inv migrate

Infrastructure

Start & Stop

# Full setup: build + start + install deps + migrate DB
pipenv run inv start

# Build Docker images + start containers (no install/migrate)
pipenv run inv up

# Build Docker images only
pipenv run inv build

# Stop all containers
pipenv run inv stop

# Destroy everything (containers, volumes, networks) — DESTRUCTIVE
pipenv run inv destroy

Monitoring

# List container status
pipenv run inv ps

# Show container logs
pipenv run inv logs

# Open bash shell in builder container
pipenv run inv builder

Workers (RabbitMQ consumers)

# Start worker containers
pipenv run inv start-workers

# Stop worker containers
pipenv run inv stop-workers

PHP Backend Testing

# Full test suite (creates test DB + fixtures + PHPUnit)
pipenv run inv tests

# Run PHPUnit only (assumes test DB already exists)
pipenv run inv phpunit

# Run specific test(s) by filter
pipenv run inv phpunit --filter-tests=MyTestClass
pipenv run inv phpunit --filter-tests=testMethodName

# Run with code coverage
pipenv run inv phpunit --coverage

# Create/reset test database with fixtures
pipenv run inv create-test-env

# Import specific fixtures
pipenv run inv import-fixtures

PHP Code Quality

# PHPStan static analysis (level 10)
pipenv run inv phpstan

# PHP-CS-Fixer — auto-fix code style
pipenv run inv cs-fix

# PHP-CS-Fixer — check only (dry-run, used in CI)
pipenv run inv cs-fix --dry-run

# PHP syntax + YAML + Twig linting
pipenv run inv lint

# Validate Doctrine schema against entities
pipenv run inv schema-validate

Frontend (Next.js / React)

Web

# Jest tests
pipenv run inv front-web-test

# ESLint
pipenv run inv front-web-lint

# TypeScript type check
pipenv run inv front-web-type

# Prettier formatting check
pipenv run inv front-web-prettier

# Unit tests (alternative)
pipenv run inv tests-unit-front

# Reset frontend API cache
pipenv run inv reset-frontend-api

Mobile App

# Unit tests
pipenv run inv test-app

# ESLint
pipenv run inv lint-app

# TypeScript compliance
pipenv run inv typing-app

# Format check
pipenv run inv format-app

# Check XCode plist files
pipenv run inv check-plist

Database

# Run pending migrations
pipenv run inv migrate

# Generate a new migration
pipenv run inv make-migration

# Load a SQL dump into dayuse_dev
pipenv run inv mysql-load-dump

# Snapshot current MySQL volume (for fast restore later)
pipenv run inv volume-mysql-snapshot

# Restore MySQL volume from snapshot
pipenv run inv volume-mysql-snapshot-restore

Elasticsearch

# Rebuild hotel index (full)
pipenv run inv es-build-hotel

# Rebuild hotel index for specific country
pipenv run inv es-build-hotel --country=FR

# Rebuild POI index
pipenv run inv es-build-poi

# Rebuild billing index
pipenv run inv es-build-billing

# Rebuild order index
pipenv run inv es-build-order

# Setup ES snapshot
pipenv run inv es-setup-snapshot

# Reset ES snapshot
pipenv run inv es-reset-snapshot

# Restore hotel index from snapshot
pipenv run inv es-restore-hotel-snapshot

# Restore POI index from snapshot
pipenv run inv es-restore-poi-snapshot

Translations

# Download translations from Loco (frontend + backend)
pipenv run inv loco-download

# Download translations, commit, and push (for releases)
pipenv run inv finalize-release

Other Utilities

# Clear Symfony cache
pipenv run inv cache-clear

# Clear dev.log
pipenv run inv log-clear

# Install all dependencies (composer + yarn)
pipenv run inv install

# Install composer dependencies only
pipenv run inv composer-install

# Generate SSL certificates
pipenv run inv generate-certificates

# Display help with local URLs
pipenv run inv help

CI Pipeline Commands

When running in CI mode, first set the CI flag:

pipenv run inv ci

CI runs these checks (all must pass):

  1. pipenv run inv phpunit — PHP unit tests
  2. pipenv run inv phpstan — Static analysis
  3. pipenv run inv cs-fix --dry-run — Code style check
  4. pipenv run inv lint — Syntax linting
  5. pipenv run inv schema-validate — Doctrine schema
  6. pipenv run inv front-web-lint — Frontend ESLint
  7. pipenv run inv front-web-type — Frontend TypeScript
  8. pipenv run inv front-web-prettier — Frontend formatting

Local Development URLs

Once containers are running (pipenv run inv up):


Troubleshooting

Containers not starting

Symptoms: inv up fails or containers crash Solution:

pipenv run inv destroy
pipenv run inv start

Test DB out of date

Symptoms: PHPUnit fails with schema errors Solution:

pipenv run inv create-test-env
pipenv run inv phpunit

pipenv not found or wrong Python

Symptoms: pipenv: command not found or import errors Solution:

pip install pipenv
pipenv install

Elasticsearch index empty or stale

Symptoms: Search returns no results Solution:

pipenv run inv es-build-hotel
pipenv run inv es-build-poi

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.22%
按下载量换算27

Claude

31.3%
按下载量换算26

Cursor

17.74%
按下载量换算15

Gemini CLI

8.79%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/dayuse-labs/skills-portfolio --skill dayuse-commands 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills