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

feature-evaluator特征评估器

Agent Skill

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

总安装

225

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rendis/feature-evaluator --skill feature-evaluator

简介

集成 MCP 协议的功能评估系统,支持规则驱动和分段目标。

  • 提供功能标志捆绑包管理和实时 HTTP 请求执行能力。
  • 通过 OpenAPI 规范自动生成可调用的 MCP 工具集合。
  • 适用于需要细粒度功能控制和 A/B 测试的平台架构。feature-evaluator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 GitHub 安装,支持 Claude Code 等专业开发环境。

SKILL.md

Feature Evaluator MCP

MCP integration for the Feature Evaluator — a feature flag system with rule-based evaluation, segment targeting, and pack-based feature bundling.

MCP Proxy

This project uses mcp-openapi-proxy to auto-generate MCP tools from the OpenAPI spec. Each API endpoint becomes a callable tool that executes real HTTP requests.

Repository: https://github.com/rendis/mcp-openapi-proxy Install: go install github.com/rendis/mcp-openapi-proxy/cmd/mcp-openapi-proxy@latest Docs: See mcp-openapi-proxy README for full configuration, authentication, and troubleshooting.

Setup

Claude Code

The project includes a .mcp.json — Claude Code auto-detects it. No manual setup needed.

make server       # Start API on port 8080
# MCP auto-configured via .mcp.json → mcp-openapi-proxy reads the Swagger spec

Verify: claude mcp list → should show feature-evaluator connected.

OpenAI Codex

Edit ~/.codex/config.toml:

[mcp_servers.feature-evaluator]
command = "mcp-openapi-proxy"
args = []

[mcp_servers.feature-evaluator.env]
MCP_SPEC = "https://raw.githubusercontent.com/rendis/feature-evaluator/main/server/docs/swagger.yaml"
MCP_BASE_URL = "<your-api-url>/features"
MCP_TOOL_PREFIX = "fe"

Gemini CLI

Edit ~/.gemini/settings.json (global) or .gemini/settings.json (project):

{
  "mcpServers": {
    "feature-evaluator": {
      "command": "mcp-openapi-proxy",
      "args": [],
      "env": {
        "MCP_SPEC": "https://raw.githubusercontent.com/rendis/feature-evaluator/main/server/docs/swagger.yaml",
        "MCP_BASE_URL": "<your-api-url>/features",
        "MCP_TOOL_PREFIX": "fe"
      }
    }
  }
}

Regenerate Swagger (after handler changes)

make swagger      # generates server/docs/swagger.yaml from handler annotations

OIDC Authentication (production)

mcp-openapi-proxy login     # browser-based OIDC PKCE login
mcp-openapi-proxy status    # check auth status
mcp-openapi-proxy logout    # clear stored tokens

Available MCP Tools

Each API endpoint becomes a callable MCP tool. Tool naming pattern: fe_{operation}.

Key Tools

ToolPurpose
fe_list_featuresList all features
fe_create_featureCreate a feature
fe_get_featureGet feature by key
fe_update_featureUpdate a feature
fe_delete_featureDelete a feature
fe_toggle_featureEnable/disable a feature
fe_list_rulesList rules for a feature
fe_create_ruleCreate a rule
fe_evaluateEvaluate a single feature
fe_bulk_evaluateBulk evaluate features
fe_evaluate_allEvaluate all active features
fe_list_packsList packs
fe_list_segmentsList segments
fe_list_experimentsList experiments
fe_validate_expressionValidate expression syntax
fe_test_expressionTest expression with context
fe_expression_schemaAvailable expression fields/functions
fe_dashboard_statsDashboard statistics

All tools follow the fe_* prefix convention. Run any fe_list_* tool to discover available resources.

Quick Start Workflow

1. fe_list_features                → discover existing features
2. fe_get_feature { key: "..." }   → inspect a specific feature
3. fe_list_rules { key: "..." }    → see targeting rules
4. fe_evaluate { featureKey: "...", context: {...} }  → evaluate a feature
5. fe_expression_schema            → see available expression fields/functions
6. fe_validate_expression { expression: "..." }       → validate rule syntax

API Groups

All routes under base path /features.

Health (no auth)

  • GET /healthz, GET /readyz

Evaluation (Bearer OR X-Api-Key + rate limited)

  • POST /eval — evaluate single feature
  • POST /eval/bulk — evaluate multiple features
  • POST /eval/active — evaluate all active features
  • POST /eval/conversions — record experiment conversion

OFREP (OpenFeature Remote Evaluation Protocol)

  • POST /ofrep/v1/evaluate/flags/:key — single flag (separate base path)
  • POST /ofrep/v1/evaluate/flags — bulk flags

Features (Bearer JWT)

  • CRUD: GET/POST/PUT/DELETE /admin/features, /admin/features/:key
  • PATCH /admin/features/:key/toggle — enable/disable
  • GET /admin/environments — list environments

Rules (Bearer JWT)

  • CRUD: GET/POST/PUT/DELETE /admin/features/:key/rules
  • PUT /admin/features/:key/rules/reorder
  • POST/GET /admin/features/:key/expression/test, /expression-schema

Expression Tools (Bearer JWT)

  • POST /admin/expression/validate — validate syntax
  • POST /admin/expression/test — test with context
  • GET /admin/expression/schema — available fields/functions

Schedules (Bearer JWT)

  • POST/GET /admin/features/:key/schedules
  • DELETE /admin/schedules/:id

Packs (Bearer JWT)

  • CRUD: GET/POST/PUT/DELETE /admin/packs, /admin/packs/:key
  • PATCH /admin/packs/:key/toggle
  • POST/DELETE /admin/packs/:key/activate — activate/deactivate on target
  • GET /admin/packs/:key/activations, /admin/packs/by-target

Segments (Bearer JWT)

  • CRUD: GET/POST/PUT/DELETE /admin/segments, /admin/segments/:key
  • GET /admin/segments/:key/schema, /admin/segments/:key/records
  • POST /admin/segments/:key/data/import

Experiments (Bearer JWT)

  • CRUD: GET/POST/PUT /admin/experiments, /admin/experiments/:id
  • Lifecycle: POST /admin/experiments/:id/{start,pause,complete,declare-winner}
  • GET /admin/experiments/:id/results

Tags, Members, API Keys, Auth Profiles, External APIs

  • CRUD at /admin/tags, /admin/members, /admin/api-keys, /admin/auth-profiles, /admin/external-apis

Dashboard & Metrics (Bearer JWT)

  • GET /admin/dashboard/{stats,activity,error-summary,operations}
  • GET /admin/dashboard/metrics/{overview,features,reasons,tenants,environments,cache,external}

Audit & Changelog (Bearer JWT)

  • GET /admin/audit/errors
  • GET /admin/changelog, /admin/changelog/:entityType/:entityKey

Workspaces (Bearer JWT)

  • CRUD: GET/POST/PUT/DELETE /admin/workspaces, /admin/workspaces/:key
  • POST /admin/workspaces/:key/{archive,restore}

Tiers (Bearer JWT, read-only)

  • GET /admin/tiers

Expression Language (expr-lang)

Rules use expr-lang/expr. Full reference: references/expressions.md

Eval Request

{
  "featureKey": "my-feature",
  "context": {
    "user": { "id": "u-1", "email": "alice@empresa.com", "role": "admin" },
    "tenant": { "id": "t-1" },
    "campus": { "id": "c-1" },
    "program": { "id": "p-1" },
    "custom": { "country": "US" },
    "billing": { "plan": "pro" }
  },
  "environment": "production"
}

Evaluation Inputs

  • environment can be sent in the eval request body.
  • X-Environment overrides body environment on eval endpoints.
  • environment is used as a feature-level eligibility gate before rule evaluation. It is not documented as an expression variable.
  • Each context namespace becomes a top-level variable in expressions (user.*, tenant.*, custom.*, billing.*, etc.).
  • custom is valid and already supported.
  • Any additional namespace under context is also exposed as a top-level variable.

See references/expressions.md for the full precedence and evaluation behavior.

System Headers vs Expression Headers

System headers affect request handling, auth, workspace resolution, or context fallbacks. They are not exposed to headers.* automatically just because they were sent.

HeaderBackend roleContext fallbackDerived/auth inputWorkspace/input scopeAuto in expressions?
AuthorizationBearer auth for eval/adminNoYesNoNo
X-Api-KeyAPI key auth for eval/adminNoYesNoNo
X-EnvironmentOverrides body environmentNoNoNoNo
X-Tenant-IDTenant extraction middlewarecontext.tenant.id only if context.tenant is absentNoNoNo
X-Campus-IDCampus extraction middlewarecontext.campus.id only if context.campus is absentNoNoNo
X-Program-IDProgram extraction middlewarecontext.program.id only if context.program is absentNoNoNo
X-WorkspaceWorkspace resolutionNoNoYesNo
X-Request-IDRequest correlationNoNoNoNo

headers.* only contains headers explicitly declared in the feature InputContract. If a feature maps a header like X-Region to expression key region, the rule can read headers.region.

Expression Variables

VariableSource
user.*, tenant.*, campus.*, program.*, custom.*context in request body
any additional context.<namespace>.*additional custom namespaces in request body
headers.*HTTP headers (via feature InputContract)
requestBody.*Request body fields
authenticatedTrue if auth profile validation passed
derived.emailJWT email claim, fallback context.user.email
derived.userIdJWT sub claim, fallback context.user.id
derived.subjectJWT sub claim (no fallback)
derived.nameJWT name claim (no fallback)
derived.bearerTokenPresentTrue if Bearer token in request
derived.apiKeyPresentTrue if API key in request

JWT auto-extraction: Send Authorization: Bearer <jwt> → claims sub, email, name auto-populate derived.*. JWT claims take priority over context body.

Builtin Functions

FunctionDescription
now()Current UTC time
dateBefore(date, ref)True if date < ref (RFC3339, YYYY-MM-DD)
dateAfter(date, ref)True if date > ref
contains(val, needle)String containment
startsWith(val, prefix)String prefix
endsWith(val, suffix)String suffix
inSegment(key)Segment membership check
externalApi(key)External API validation

Common Patterns

# Email targeting (from JWT)
derived.email == "admin@empresa.com"
endsWith(derived.email, "@empresa.com")

# Email targeting (from context body)
user.email == "admin@empresa.com"

# Custom namespaces from context
custom.country == "CL"
billing.plan == "pro"

# Header declared in feature InputContract
headers.region == "us-east-1"

# Auth + role
authenticated && user.role == "admin"
derived.apiKeyPresent

# Segments
inSegment("beta-users")

# Date range
dateAfter(now(), "2025-06-01") && dateBefore(now(), "2025-12-31")

# Combined
tenant.id == "acme" && inSegment("early-access") && authenticated

Security Limits

Max AST depth: 10, max nodes: 100, max inSegment() calls: 5, max string length: 1000. Denied: exec, system, import, require, proto, constructor, prototype, eval, Function, process.

Known API Behaviors

  • List responses: {"data": [...], "pagination": {"page": 1, "pageSize": 20, "total": N, "totalPages": M}}
  • Toggle/Delete: return 204 No Content
  • Errors: {"error": {"code": "...", "message": "...", "messageKey": "..."}}
  • Pack targets: tenant, campus, program
  • Value types: boolean, string, number, json
  • Access policies: public (default), optional, required

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.9%
按下载量换算25

Claude

27.85%
按下载量换算20

Cursor

20.48%
按下载量换算15

Gemini CLI

10.01%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills