Skip to content
drive-acset logo

Drive ACSet Skill

drive-acset

Google Drive management via DriveACSet schema with GF(3) triadic routing. Transforms files/folders into typed Interactions, routes to queue fibers, detects saturation for organized-drive-as-condensed-state.

SKILL.md

Full skill instructions

Drive ACSet Skill

Transform Google Drive into a GF(3)-conserving algebraic database system.

Trit: 0 (ERGODIC - coordinator)
Principle: Organized Drive = Condensed State
Implementation: DriveACSet + TriadicQueues + SaturationDetector

DriveACSet Schema

┌────────────────────────────────────────────────────────────────────┐
│                       DriveACSet Schema                            │
├────────────────────────────────────────────────────────────────────┤
│                                                                    │
│  File ──────────┬────▶ Folder                                     │
│  ├─ file_id     │      ├─ folder_id: String                       │
│  ├─ name        │      ├─ name: String                            │
│  ├─ mime_type   │      └─ parent ─────────▶ Folder (self-ref)     │
│  ├─ size        │                                                  │
│  └─ parent ─────┘                                                  │
│                                                                    │
│  Permission ────┬────▶ File | Folder                              │
│  ├─ role        │      ├─ reader | commenter | writer | owner     │
│  └─ share_with ─┼──▶   └─ email | domain | anyone                 │
│                 │                                                  │
│  Revision ──────┼────▶ File                                       │
│  ├─ rev_id      │      ├─ modified_time                           │
│  └─ modified_by ┘      └─ keep_forever: Bool                      │
│                                                                    │
│  QueueItem ─────┼────▶ Agent3                                     │
│  ├─ interaction │      ├─ fiber: Trit {-1, 0, +1}                 │
│  └─ agent ──────┘      └─ name: String                            │
└────────────────────────────────────────────────────────────────────┘

Objects

ObjectDescriptionTrit Role
FileDrive file with metadataData
FolderHierarchical containerAggregate
PermissionACL entry for sharingEdge
RevisionFile version historyTemporal
Agent3Queue fiber (MINUS/​ERGODIC/​PLUS)Router
QueueItemLinks Interaction → Agent3Edge

GF(3) Verb Typing

Drive operations assigned trits by information flow:

VERB_TRIT_MAP = {
    # MINUS (-1): Read/​Validate
    "get": -1,        "search": -1,    "list": -1,
    "download": -1,   "get_content": -1,
    
    # ERGODIC (0): Coordinate/​Permissions
    "share": 0,       "permissions": 0, "move": 0,
    "rename": 0,      "update_metadata": 0,
    
    # PLUS (+1): Create/​Execute
    "create": +1,     "upload": +1,    "copy": +1,
    "export": +1,     "transfer_ownership": +1,
}

MCP Tool → Trit Mapping

ToolTritDescription
search_drive_files-1Search files (MINUS)
get_drive_file_content-1Read file (MINUS)
list_drive_items-1List folder (MINUS)
get_drive_file_permissions-1Check perms (MINUS)
share_drive_file0Share file (ERGODIC)
update_drive_permission0Modify perms (ERGODIC)
update_drive_file0Update metadata (ERGODIC)
create_drive_file+1Create file (PLUS)
transfer_drive_ownership+1Transfer owner (PLUS)

Triadic Queue Routing

                    ┌─────────────────────────────────────────┐
                    │         DRIVE TRIADIC QUEUES            │
                    ├─────────────────────────────────────────┤
                    │                                         │
   DriveAction ────▶│  route(trit) ───▶ Agent3 Fiber         │
                    │                                         │
                    │  MINUS (-1)  ────▶ [get, search, list]  │
                    │  ERGODIC (0) ────▶ [share, permissions] │
                    │  PLUS (+1)   ────▶ [create, upload]     │
                    │                                         │
                    └─────────────────────────────────────────┘

Saturation Detection

def is_drive_saturated(folder_id: str) -> bool:
    """Folder saturated when:
    1. All files have stable permissions
    2. No pending changes in window N
    3. GF(3) cycle closure: sum(trits) ≡ 0 (mod 3)
    """
    history = detector.history[folder_id][-N:]
    cycle_sum = sum(t for t in folder.gf3_cycle[-3:])
    
    return (
        all(s == history[0] for s in history) and
        (cycle_sum % 3) == 0
    )

def detect_organized_state() -> Dict:
    """Drive at condensed state when:
    1. All folders saturated
    2. Permission graph stable
    3. GF(3) conserved globally
    """
    return {
        "organized": all_saturated and gf3_conserved,
        "condensed_fingerprint": sha256(sorted_file_tree),
    }

Source Files

FileDescriptionTrit
drive_acset.pyACSet schema + hierarchy0
drive_mcp_bridge.pyMCP tool wiring0
permission_graph.pyACL graph analysis-1

Workflows

Workflow 1: Organize Folder to Condensed State

from drive_mcp_bridge import create_drive_bridge
from drive_acset import DriveACSet

bridge = create_drive_bridge("[email protected]")
acset = DriveACSet()

# MINUS: List and analyze
items = bridge.list_drive_items(folder_id="root")
for item in items:
    acset.add_file(item) if item.is_file else acset.add_folder(item)

# ERGODIC: Normalize permissions
for file in acset.files_needing_permission_fix():
    bridge.share_drive_file(file.id, share_with="[email protected]", role="reader")

# PLUS: Create missing structure
bridge.create_drive_file(file_name="README.md", folder_id=folder_id, content="# Index")

Workflow 2: Permission Audit with GF(3) Guard

# MINUS: Check permissions
perms = bridge.get_drive_file_permissions(file_id)

# ERGODIC: Update if needed (requires prior MINUS)
if needs_update(perms):
    bridge.update_drive_permission(file_id, permission_id, role="commenter")

# Verify GF(3) balance
assert acset.gf3_residue() == 0

Workflow 3: Batch File Organization

batch = create_triadic_batch(
    payloads=["list_root", "share_docs", "create_index"],
    folder_id="team_folder",
    seed=1069
)

for interaction in batch:
    system.enqueue(interaction)

stats = system.full_statistics()
print(f"GF(3) Residue: {stats['gf3_residue']}")  # 0

Integration with Other Skills

SkillTritIntegration
google-workspace0MCP tool provider
gmail-anima0Cross-product via attachments
gay-mcp+1SplitMixTernary RNG
sheaf-cohomology-1H¹ obstruction on folder tree

GF(3) Triadic Conservation

drive-acset (0) ⊗ search (-1) ⊗ create (+1) = 0 ✓
get (-1) ⊗ share (0) ⊗ upload (+1) = 0 ✓
list (-1) ⊗ permissions (0) ⊗ copy (+1) = 0 ✓

Skill Name: drive-acset
Type: File Management / ACSet Framework
Trit: 0 (ERGODIC - coordinator)
GF(3): Conserved via triadic queue routing
Principle: Organized Drive = Condensed State

Scientific Skill Interleaving

This skill connects to the K-Dense-AI/​claude-scientific-skills ecosystem:

Annotated Data

  • anndata [○] via bicomodule

Bibliography References

  • general: 734 citations in bib.duckdb

Cat# Integration

This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:

Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826

GF(3) Naturality

The skill participates in triads satisfying:

(-1) + (0) + (+1) ≡ 0 (mod 3)

This ensures compositional coherence in the Cat# equipment structure.

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View