# Interface SkillWithMetrics

A skill with its execution metrics.

interface SkillWithMetrics {
id: string;
name: string;
description: string;
category: SkillCategory;
complexity: SkillComplexity;
code: string;
parameters: readonly SkillParameter[];
outputType: string;
dependencies: readonly string[];
tags: readonly string[];
examples: readonly SkillExample[];
createdAt: Date;
updatedAt: Date;
version: number;
capabilities?: SkillCapabilities;
rbac?: SkillRBAC;
provenance?: SkillProvenance;
metrics: SkillMetrics;
}

#### Hierarchy (View Summary)

- Skill
  - SkillWithMetrics

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:158

##### Index

### Properties

id
name
description
category
complexity
code
parameters
outputType
dependencies
tags
examples
createdAt
updatedAt
version
capabilities?
rbac?
provenance?
metrics

## Properties

### `Readonly` id

id: string

Unique identifier

Inherited from Skill.id

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:54

### `Readonly` name

name: string

Human-readable name

Inherited from Skill.name

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:56

### `Readonly` description

description: string

Detailed description of what the skill does

Inherited from Skill.description

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:58

### `Readonly` category

category: SkillCategory

Category for organization

Inherited from Skill.category

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:60

### `Readonly` complexity

complexity: SkillComplexity

Complexity level

Inherited from Skill.complexity

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:62

### `Readonly` code

code: string

The executable code (function body)

Inherited from Skill.code

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:64

### `Readonly` parameters

parameters: readonly SkillParameter[]

Input parameter definitions

Inherited from Skill.parameters

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:66

### `Readonly` outputType

outputType: string

Expected output type description

Inherited from Skill.outputType

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:68

### `Readonly` dependencies

dependencies: readonly string[]

Skills this depends on (for composition)

Inherited from Skill.dependencies

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:70

### `Readonly` tags

tags: readonly string[]

Keywords for search/retrieval

Inherited from Skill.tags

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:72

### `Readonly` examples

examples: readonly SkillExample[]

Usage example(s)

Inherited from Skill.examples

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:74

### `Readonly` createdAt

createdAt: Date

When the skill was created

Inherited from Skill.createdAt

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:76

### `Readonly` updatedAt

updatedAt: Date

When the skill was last modified

Inherited from Skill.updatedAt

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:78

### `Readonly` version

version: number

Version number for tracking changes

Inherited from Skill.version

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:80

### `Optional` `Readonly` capabilities

capabilities?: SkillCapabilities

Security capabilities (optional, for controlled execution)

Inherited from Skill.capabilities

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:82

### `Optional` `Readonly` rbac

rbac?: SkillRBAC

Role-based access control (optional, for permission enforcement)

Inherited from Skill.rbac

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:84

### `Optional` `Readonly` provenance

provenance?: SkillProvenance

Provenance tracking (optional, for audit trail)

Inherited from Skill.provenance

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:86

### `Readonly` metrics

metrics: SkillMetrics

Execution metrics

- Defined in packages/nexus-agents/src/agents/skills/skill-types.ts:160