Index of every page on this site: llms.txt
All skills
conorbronsdon avatar

/mine-gemini-workflows

@1a9c688
Run it yourself

Discover repeated, validated Gemini CLI workflows from a user-selected session directory and turn approved candidates into portable skills and parity tests without exporting private reasoning.

  • 1 file
  • 3.5 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/conorbronsdon/agent-context-os/mine-gemini-workflows

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈54 tokens for metadata: the name and description. ≈847 when used: this file.

Description uses 2.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈216 characters, or 2.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Mine Gemini workflows

Use session evidence to find workflows worth porting. This is workflow archaeology, not a bulk conversation export.

Non-negotiable privacy boundaries

  • Require one explicitly selected Gemini project/session directory. Never crawl the entire home directory by default.
  • Run the metadata-only pass first.
  • Do not extract or summarize private thoughts, reasoning fields, tool arguments, secrets, or complete transcripts.
  • Do not commit .context-os/migrations/ or raw Gemini recordings.
  • Ask before any --include-content, --include-summaries, or --include-paths pass and explain exactly which selected sessions will be read.
  • A repeated pattern is a candidate, not authorization to create or install a skill.

Procedure

1. Select evidence

Ask the user for the relevant Gemini project/session directory and optional date boundary. If they do not know the directory, help them locate candidate directories using names and modification dates only; do not read session bodies during discovery.

2. Create a metadata-only inventory

Run:

python3 scripts/mine-gemini-workflows.py \
  <selected-session-directory> \
  --output .context-os/migrations/<timestamp>/gemini-inventory.json

Add --since YYYY-MM-DD when the user supplied a date boundary. The default report includes tool names, validation status, file basenames, and session identifiers. It excludes message text, free-form workflow summaries, tool arguments, and full paths.

3. Rank candidates

Prioritize candidates that:

  1. occur with positive validation in at least two sessions,
  2. have successful validation evidence,
  3. use a stable tool sequence,
  4. solve a task the user expects to repeat.

Do not promote one-off activity or a repeated failure. Present the ranked candidates and evidence counts, then ask the user which ones to inspect.

4. Inspect only selected sessions

If metadata is insufficient, name the exact selected session IDs and ask permission to rerun with repeated --session-id <id> selectors plus only the required opt-in flag (--include-summaries, --include-paths, or --include-content). Content redaction is best-effort, not a guarantee; treat every opt-in report as sensitive. Thought/reasoning fields remain excluded. Review the output again before sharing or persisting it.

5. Draft, do not silently install

For each approved candidate:

  • draft .agents/skills/<workflow>/SKILL.md as the portable core,
  • add a thin .claude/commands/<workflow>.md adapter only if a Claude slash command is wanted,
  • create a parity case from docs/templates/workflow-parity.json,
  • record provenance using session IDs, immutable recording digests, and evidence counts, not transcript content,
  • separate provider-neutral steps from Gemini-, Claude-, or Codex-specific tool adapters.

Show the draft and parity case before writing. Then run bash scripts/validate-all.sh --workspace.

6. Report limitations

State what the miner could not infer, including missing memory scratchpads, unsupported recording variants, unavailable tools, ambiguous validation, or workflows that need human judgment.

Prior art

See references/ai-data-extraction.md. The linked extractor informed the inventory-first approach, but is not a dependency and should not be run against current recordings without format and privacy review.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 1a9c688. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 3 months ago

README badge

README badge for conorbronsdon/agent-context-os/mine-gemini-workflows