User File Ops
Documentsuser-file-opsUser File Ops is an Agent Skill for documents published in the trpc-group/trpc-agent-go repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Simple operations on user-provided text files including summarization.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/trpc-group/trpc-agent-go/blob/HEAD/examples/skillrun/skills/user_file_ops/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/user-file-ops, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Overview
Summarize text files that come from the user or from other skills. This skill can compute basic statistics (lines, words, bytes) and capture a short preview of the file.
User-provided files are typically exposed under work/inputs/ (for
example, when a host directory is mounted as inputs, or when the user
uploads a file into the conversation and the framework stages it into
the workspace before scripts run). Files produced by other skills are
usually written under out/ and can be summarized directly from
there.
Examples
-
Summarize a text file already present in the workspace
Command:
bash scripts/summarize_file.sh
work/inputs/example.txt
out/example_summary.txt -
Summarize a different file
Command:
bash scripts/summarize_file.sh
work/inputs/notes.txt
out/notes_summary.txt -
Summarize a file produced by another skill
Command:
bash scripts/summarize_file.sh
out/sample_fib.txt
out/sample_fib_summary.txt
Output Files
- out/example_summary.txt
- out/notes_summary.txt
- out/sample_fib_summary.txt