Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

constraintsconstraints 搜索

Agent Skill

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

总安装

343

周安装

14

GitHub Stars

公开资料未说明

下载量

111
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "constraints"

简介

约束搜索工具聚合数学、工程与编程领域中各类限制条件案例。

  • 适用于求解优化问题或设计系统边界时的参考借鉴。
  • 支持按类型、领域与应用场景分类检索相关资料。constraints 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需从 zpankz/mcp-skillset 仓库安装并加载至目标宿主。
  • 案例参考价值有限,实际应用需适配具体业务上下文。

SKILL.md

name
constraints
description
Formal constraint theory unifying deontic logic (P/O/F/I operators), Juarrero's trichotomy (enabling/governing/constitutive), Hohfeldian rights (claim-duty, privilege-noright, power-liability, immunity-disability), and category-theoretic composition. Use when modelling permissions, obligations, prohibitions, rights structures, agent authority, governance systems, ontology validation, or any domain requiring formal constraint specification. Integrates with ontolog via λ-calculus mapping.

Constraints

*Formal theory of constraints as structure-preserving functors over deontic modalities*

Core Definition

A constraint is a functor mapping structural contexts to deontic outcomes:

C : (Σ × A) → Δ

Where:
  Σ = Simplicial complex (structural context from ontolog)
  A = Action/state space
  Δ = Deontic modality {P, O, F, I, ?}

Constraints shape possibility spaces without adding energy—they are rate-independent causes that determine what can happen without forcing any particular outcome.

The Constraint Equation

C(σ, a) = δ ⟺ Within context σ, action a has deontic status δ

Composition: Constraints form a category with:

  • Objects: Deontic positions
  • Morphisms: Constraint transformations
  • Identity: Trivial permission (P by default)
  • Composition: Sequential constraint application

Deontic Modalities (Δ)

Four fundamental operators from modal deontic logic:

OperatorSymbolSemanticsDual
PermittedP(a)a is allowed¬F(a)
ObligatedO(a)a is required¬P(¬a)
ForbiddenF(a)a is prohibited¬P(a)
ImpossibleI(a)a cannot occur¬◇a

Axioms (Standard Deontic Logic):

D: O(a) → P(a)           — Ought implies may
K: O(a→b) → (O(a)→O(b))  — Distribution
N: If ⊢a then ⊢O(a)      — Necessitation for tautologies

Interdefinitions:
P(a) ≡ ¬O(¬a)            — Permission as non-obligatory negation
F(a) ≡ O(¬a)             — Prohibition as obligated negation

Constraint Trichotomy (Juarrero)

Constraints differ by how they shape possibility:

┌─────────────────────────────────────────────────────────────────┐
│                    CONSTRAINT TRICHOTOMY                        │
├──────────────┬──────────────────────────────────────────────────┤
│   ENABLING   │ Creates new possibilities, opens pathways        │
│              │ Examples: catalysts, bridges, APIs, permissions   │
│              │ Effect: Expands action space                      │
│              │ Hohfeldian: Privilege, Power                      │
├──────────────┼──────────────────────────────────────────────────┤
│  GOVERNING   │ Regulates without participating, modulates rate  │
│              │ Examples: thermostats, regulatory genes, duties   │
│              │ Effect: Channels existing possibilities          │
│              │ Hohfeldian: Claim-Duty                            │
├──────────────┼──────────────────────────────────────────────────┤
│ CONSTITUTIVE │ Defines identity, creates closure                │
│              │ Examples: rules of chess, cell membranes, types  │
│              │ Effect: Determines what something IS             │
│              │ Hohfeldian: Immunity-Disability                   │
└──────────────┴──────────────────────────────────────────────────┘

Causal flow: Enabling → Constitutive → Governing

  • Enabling constraints induce coherence
  • Constitutive constraints maintain coherence
  • Governing constraints regulate coherent behaviour

Hohfeldian Rights Structure

Eight fundamental jural positions in two squares:

First-Order (Conduct)

    Claim ←─correlative─→ Duty
      ↕                     ↕
   opposite             opposite
      ↕                     ↕
  No-Right ←─correlative─→ Privilege

Second-Order (Normative Change)

    Power ←─correlative─→ Liability
      ↕                     ↕
   opposite             opposite
      ↕                     ↕
 Disability ←─correlative─→ Immunity

Position semantics:

PositionDefinitionConstraint Type
ClaimX has claim that Y φGoverning
DutyY must φ toward XGoverning
PrivilegeX may φ (no duty not to)Enabling
No-RightY cannot demand X not φEnabling
PowerX can change Y's positionsEnabling
LiabilityY's positions changeable by XGoverning
ImmunityX's positions unchangeable by YConstitutive
DisabilityY cannot change X's positionsConstitutive

Correlative inference: If X has Claim against Y, then Y has Duty to X (and vice versa).

The KROG Theorem

Valid actions satisfy all constraint layers within governance:

Valid(a) ⟺ K(a) ∧ R(a) ∧ O(a) ∧ (a ∈ G)

Where:
  K(a) = Knowledge constraint (a is knowable/queryable)
  R(a) = Rights constraint (agent has right to a)
  O(a) = Obligation constraint (a satisfies duties)
  G    = Governance boundary (meta-rules)

Implication: No valid action can violate knowledge transparency, rights structure, obligation compliance, OR governance bounds.

ontolog Integration

Constraints map to λ-calculus primitives:

ontologConstraint RoleMapping
ο (base)Constraint domainAgents, states subject to C
λ (operation)Constrained actionActions C evaluates
τ (terminal)Satisfied stateC(σ,a) = P ∨ O fulfilled
Σ (complex)ContextStructural scope of C
H (holon)Authority scopeNested jurisdiction

Constraint as λ-abstraction:

C = λσ.λa.δ    — Constraint abstracts context and action to modality

Reduction:

(C σ₀) a₀ →β δ₀    — Applying C to specific context and action yields modality

Constraint Composition

Logical Operations

C₁ ∧ C₂ : Both constraints must permit
C₁ ∨ C₂ : Either constraint permits
C₁ → C₂ : If C₁ permits, C₂ must permit
¬C      : Opposite constraint (correlative)

Category-Theoretic Operations

C₁ ∘ C₂ : Sequential (C₂ then C₁)
C₁ ⊗ C₂ : Parallel independent
C₁ + C₂ : Coproduct (choice)

Functor Laws

C(id) = id                    — Identity preservation
C(f ∘ g) = C(f) ∘ C(g)       — Composition preservation

Temporal Extension

Constraints over time using temporal operators:

□C     : C holds always (invariant)
◇C     : C holds eventually
C U C' : C until C' (deadline)
○C     : C holds next (sequence)

Common patterns:

O(a) U t        — Obligated to do a before time t
□P(a)           — Always permitted to do a
F(a) U C(b)     — Forbidden until condition b claimed

Rigidity Classification

RigidityCan Change?Ontological TypeExample
ConstitutionalNeverFundamental identity"Persons have rights"
StaticBy governance onlyKind, CategoryType definitions
DynamicBy power holdersRole, PhaseEmployment status
ContextualBy situationCircumstantialWeather-dependent rules

Validation Protocol

def validate_constraint(C, σ, a):
    """Validate constraint application."""
    
    # 1. Scope check
    if not in_scope(a.agent, C.holon):
        return Invalid("Agent outside constraint scope")
    
    # 2. Context check
    if not C.domain.contains(σ):
        return Invalid("Context outside constraint domain")
    
    # 3. Modality check
    δ = C(σ, a)
    
    # 4. Correlative consistency
    for correlative in C.correlatives:
        if not consistent(δ, correlative(σ, a)):
            return Invalid("Correlative inconsistency")
    
    # 5. KROG theorem
    if not (K(a) and R(a) and O(a) and in_governance(a)):
        return Invalid("KROG violation")
    
    return Valid(δ)

Inference Rules

Correlative Inference

Claim(X, Y, φ)  ⊢  Duty(Y, X, φ)
Power(X, Y, φ)  ⊢  Liability(Y, X, φ)

Transitivity (where applicable)

C(a, b) ∧ C(b, c) ∧ C.transitive  ⊢  C(a, c)

Governing Propagation

Governing(C) ∧ C(parent, child) ∧ scope(H)  ⊢  C(parent, descendants(H))

Constitutional Immutability

Constitutive(C)  ⊢  ¬◇modify(C)   — Constitutive constraints cannot be modified

Quick Reference

Constraint Declaration

constraint:
  id: "hiring_authority"
  type: enabling
  modality: P
  domain: [Manager]
  action: hire
  scope: department_holon
  correlative: liability_to_be_hired
  rigidity: dynamic

Hohfeldian Position Check

has_position(agent, position, target, action) → Boolean
correlative_of(position) → Position
opposite_of(position) → Position

KROG Compliance

krog_valid(action) := K(action) ∧ R(action) ∧ O(action) ∧ G(action)

File Structure

constraints/
├── SKILL.md              # This file
├── references/
│   ├── deontic.md        # Full deontic logic reference
│   ├── hohfeld.md        # Complete Hohfeldian analysis
│   └── composition.md    # Category-theoretic details
└── scripts/
    └── validate.py       # Constraint validation

Integration Points

SkillIntegration
ontologο/λ/τ mapping, Σ context, H scope
graphConstraint edges, validation rules
reasonConstraint-guided branching bounds
agencyAgent authority via Hohfeldian positions

Core insight: Constraints are not limitations imposed from outside but structure-preserving functors that shape possibility spaces. The trichotomy (enabling/governing/constitutive) combined with deontic modality (P/O/F/I) and Hohfeldian relational structure provides complete formal vocabulary for any rule-based system.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

OpenCode

26.22%
按下载量换算29

Claude Code

23.75%
按下载量换算26

windsurf

16.73%
按下载量换算19

Codex

11.99%
按下载量换算13

kiro-cli

7.86%
按下载量换算9

mcpjam

3.03%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add zpankz/mcp-skillset --skill "constraints" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills