본문으로 건너뛰기
cccskills
무료GitHub에 공개

amp-skill

Interruption pattern detection and retrieval from Amp thread history. Use for analyzing tool rejection patterns and improving agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.8 KB
  • CONCOMITANT_SKILLS.md748 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Amp-Skill: Interruption Pattern Detection and Retrieval

GF(3) Trit: 0 (ERGODIC - coordination layer) Foundation: DuckDB ACSet from Amp file-changes

Overview

Amp-Skill distills usage patterns from Amp thread history, specifically focusing on interruption patterns where tool suggestions were rejected in favor of:

  1. Two-lock processes - user requested confirmation before proceeding
  2. Complete discontinuation - user abandoned the thread entirely
  3. Reverted operations - user explicitly undid an AI action

Retrieval Benchmark Metrics

MetricValue
Total Threads616
Total Tool Calls2,535
Threads with Interruptions282 (45.8%)
Reverted Tool Calls84 (3.3%)
Two-Lock Cascades47
Complete Discontinuations22

Interruption Pattern Distribution

Pattern TypeCountPercentage
abandoned26962.4%
reverted8419.5%
two_lock4710.9%
discontinuation225.1%
high_rejection92.1%

GF(3) Distribution

RoleThreadsTool CallsReverted
MINUS21876927
ERGODIC20997626
PLUS18979031

File Types Most Frequently Reverted

  1. .org - 28 reverts (Emacs org-mode files)
  2. .py - 20 reverts (Python scripts)
  3. .sh - 18 reverts (Shell scripts)
  4. .md - 15 reverts (Markdown documentation)

SQL Access

-- Query interruption patterns
SELECT * FROM amp_interruptions ORDER BY ts DESC;

-- Find high-rejection threads
SELECT thread_id, tool_call_count, reverted_count,
       ROUND(100.0 * reverted_count / tool_call_count, 1) as revert_pct
FROM amp_threads
WHERE reverted_count > 0
ORDER BY revert_pct DESC;

-- Detect two-lock cascades
SELECT thread_id, COUNT(*) as consecutive_reverts
FROM amp_interruptions
WHERE pattern_type = 'two_lock'
GROUP BY thread_id
ORDER BY consecutive_reverts DESC;

Key Insights

1. Abandoned Threads (62.4%)

  • Single tool call threads indicate quick task completion OR user abandonment
  • Requires context analysis to distinguish

2. Two-Lock Cascades (10.9%)

  • 47 instances of consecutive reverts within 60 seconds
  • Indicates AI attempting same action repeatedly despite rejection
  • Action: Implement backoff after 2 consecutive reverts

3. High-Rejection Threads (2.1%)

  • 9 threads with >50% revert rate
  • Top offender: 100% revert rate on capability-signer-prototype.sh
  • Pattern: Security-sensitive code rejected multiple times

4. File Type Sensitivity

  • .org files most frequently rejected (28)
  • Personal/organizational files have higher rejection rate
  • Action: Add confirmation prompt for org-mode edits

Retrieval Benchmark Success Criteria

  • All 616 threads loaded from filesystem
  • All 2,535 tool calls indexed with metadata
  • 5 interruption pattern types detected
  • Two-lock pattern detection via SQL windowing
  • Discontinuation pattern (thread ends on revert)
  • GF(3) conservation (currently imbalanced by 29)

Usage

# Load/refresh Amp threads
bb scripts/amp_thread_loader.bb

# Query via DuckDB
duckdb trit_stream.duckdb "SELECT * FROM amp_interruptions"

Integration with Triadic Protocol

When Amp-Skill detects a high-rejection pattern:

  1. MINUS (-1): Validate the rejection pattern
  2. ERGODIC (0): Coordinate alternative approaches
  3. PLUS (+1): Generate new solution avoiding rejected pattern

Data Sources

  • Local: ~/.amp/file-changes/T-* (2,535 files)
  • API: None currently (file-changes only contain diffs)
  • Potential: Amp GraphQL API for full conversation history

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Model ElevenLabs voice synthesis as an ACSet schema with Unison ability handlers for typed voice operations. Use when integrating ElevenLabs TTS into category-theoretic pipelines, building typed voice synthesis workflows, or managing multi-voice narration with GF(3) conservation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

Systematic process for analyzing and modernizing legacy applications to comply with the 12-Factor App methodology. Covers code analysis, configuration externalization, dependency management, and container/Kubernetes best practices.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

13c0e3

무료

Gay MCP skill at invocation 26

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

19d57d

무료

Gay MCP skill at invocation 5

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

1ea91a

무료

Gay MCP skill at invocation 27

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

1eab21

무료

Gay MCP skill at invocation 3

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

plurigrid의 스킬 모두 보기

이 스킬의 문제 신고