MCPcopy
hub / github.com/codeaashu/claude-code / addInvokedSkill

Function addInvokedSkill

src/bootstrap/state.ts:1510–1524  ·  view source on GitHub ↗
(
  skillName: string,
  skillPath: string,
  content: string,
  agentId: string | null = null,
)

Source from the content-addressed store, hash-verified

1508}
1509
1510export function addInvokedSkill(
1511 skillName: string,
1512 skillPath: string,
1513 content: string,
1514 agentId: string | null = null,
1515): void {
1516 const key = `${agentId ?? ''}:${skillName}`
1517 STATE.invokedSkills.set(key, {
1518 skillName,
1519 skillPath,
1520 content,
1521 invokedAt: Date.now(),
1522 agentId,
1523 })
1524}
1525
1526export function getInvokedSkills(): Map<string, InvokedSkillInfo> {
1527 return STATE.invokedSkills

Callers 3

executeRemoteSkillFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected