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

validatevalidate 文档

Agent Skill

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

总安装

1

周安装

8

GitHub Stars

2

下载量

65
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/giladresisi/ai-dev-env --skill validate

简介

Validate 提供代码质量检查和 API 集成测试功能,确保开发环境稳定。

  • 适用于 Codex、Claude、Cursor 等宿主,帮助筛选关键词或技术线索。
  • 支持异步生成器资源泄漏检测、本地服务器验证和 Ruff 代码规范检查。
  • 安装方式:npx skills add https://github.com/giladresisi/ai-dev-env --skill validate。
  • 若未使用外部 API,可跳过连接性和回复格式测试部分。

SKILL.md

Run comprehensive validation of the project to ensure all tests, type checks, linting, and deployments are working correctly.

Execute the following commands in sequence and report results:

1. Test Suite

uv run pytest -v

Expected: All tests pass (currently 34 tests), execution time < 1 second

2. Type Checking

uv run mypy app/

Expected: "Success: no issues found in X source files"

uv run pyright app/

Expected: "0 errors, 0 warnings, 0 informations"

3. API Integration Tests

Purpose

Verify external API integrations work correctly with real API calls.

Prerequisites

  • All required API keys configured in environment
  • APIs must be accessible (network connectivity)
  • Test accounts/projects exist in external services

Validation Steps

3.1 Configuration Validation

Check that all required API configuration is present:

# Check environment variables
env | grep -E "(API_KEY|API_TOKEN|LANGSMITH|OPENAI)"

# Verify config file (if applicable)
cat backend/.env | grep -E "^[A-Z_]*API"

Expected:

  • All required API keys: SET (not empty)
  • Configuration file readable and valid

If Failed:

  • Error: Missing API keys
  • Action: Check.env file, environment setup

3.2 API Connectivity Tests

Test that each API is accessible and credentials work:

# LangSmith connectivity test
python -c "
from langsmith import Client
client = Client()
projects = list(client.list_projects(limit=1))
print(f'✓ LangSmith: {len(projects)} projects')
"

# OpenAI API test
python -c "
from openai import OpenAI
client = OpenAI()
models = client.models.list(limit=1)
print(f'✓ OpenAI: API accessible')
"

Expected:

  • Each API returns successful response
  • Credentials validated
  • No authentication errors

If Failed:

  • Error: Invalid API key / Unauthorized
  • Action: Verify API key in dashboard, regenerate if needed

3.3 API Response Format Verification

Verify API responses match expected format:

# Test actual API call and response structure
python -c "
# Test streaming response event types
# Test data structure
# Verify against documented schema
"

Expected:

  • Response matches documented schema
  • Event types match API documentation
  • Data structure is parseable

If Failed:

  • Error: Unexpected response format
  • Action: Check API version, update integration code

3.4 Integration Flow Test

Test complete integration flow end-to-end:

# Example: Create trace, verify it appears
# Example: Make API call, verify logging
# Example: Test error handling

Expected:

  • Complete flow executes successfully
  • Data persists correctly
  • No integration errors

If Failed:

  • Error: Integration flow broken
  • Action: Debug with verbose logging, check API status page

Summary

API Integration Tests:
- Configuration: ✅/❌
- Connectivity: ✅/❌
- Response Format: ✅/❌
- Integration Flow: ✅/❌

Note: Skip this section if no external APIs are used.

4. Linting

uv run ruff check .

Expected: "All checks passed!"

4.1 Async Generator Pattern Check

Check for async generators without finally blocks (potential resource leak):

# Find async generators
grep -rn "async def.*yield" --include="*.py" . | grep -v test_ | grep -v "#" > /tmp/async_gens.txt

# For each async generator, check if it has a finally block
if [ -s /tmp/async_gens.txt ]; then
    echo "Checking async generators for finally blocks..."
    while read -r line; do
        file=$(echo "$line" | cut -d: -f1)
        linenum=$(echo "$line" | cut -d: -f2)
        # Check next 30 lines for finally block
        if ! sed -n "${linenum},$((linenum+30))p" "$file" | grep -q "finally:"; then
            echo "⚠️  Potential missing finally block: $line"
        fi
    done < /tmp/async_gens.txt
fi

Expected: No warnings about missing finally blocks (or manual verification that resource cleanup is handled elsewhere)

Why: Async generators need finally blocks to guarantee cleanup (trace closure, DB connections, file handles) even when interrupted

5. Local Server Validation

Start the server in background:

uv run uvicorn app.main:app --host 0.0.0.0 --port 8123 &

Wait 3 seconds for startup, then test endpoints:

curl -s http://localhost:8123/ | python3 -m json.tool

Expected: JSON response with app name, version, and docs link

curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" http://localhost:8123/docs

Expected: HTTP Status: 200

curl -s -i http://localhost:8123/ | head -10

Expected: Headers include x-request-id and status 200

Stop the server:

lsof -ti:8123 | xargs kill -9 2>/dev/null || true

6. Summary Report

After all validations complete, provide a summary report with:

Validation Results:
1. Test Suite: ✅/❌ (X tests passed in Y.Zs)
2. Type Checking: ✅/❌ (mypy + pyright passed)
3. API Integration: ✅/❌/⊘ (connectivity + response validation)
4. Linting: ✅/❌ (ruff check passed)
5. Local Server: ✅/❌ (server starts, endpoints respond)

Overall Status: ✅ PASS / ❌ FAIL / ⚠ PARTIAL

Note: ⊘ = Skipped (no external APIs)

  • Any errors or warnings encountered
  • Overall health assessment (PASS/FAIL)

Format the report clearly with sections and status indicators (✅/❌)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.81%
按下载量换算23

Claude

30.5%
按下载量换算20

Cursor

20.34%
按下载量换算13

Gemini CLI

9.69%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills