papertrail-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform Papertrail log management operations using the Papertrail HTTP API via curl. Use for searching logs and inspecting saved searches and systems.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the instance and rules below when constructing all Papertrail API commands.
- Distinctive: line 12
Update the table below with your Papertrail credential file paths:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Distinctive: line 71
NEVER print, display, log, or store the contents of any token file.
- Very specific: line 72
Always read the token inline with $(cat <TOKEN_FILE>) — never hardcode a token value in a command.
- Very specific: line 73
Always pass -s (silent) to curl and pipe through jq for readable output.
- Distinctive: line 74
NEVER run DELETE endpoints without explicit user instruction — these are irreversible.
- Distinctive: line 76
If a system ID or saved search ID is unfamiliar, look it up with a read-only call first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Papertrail CLI Skill
Use the instance and rules below when constructing all Papertrail API commands.
Configuration
Update the table below with your Papertrail credential file paths:
| Environment | Token File |
| Production | ~/.papertrail/prod.token |
| Staging | ~/.papertrail/staging.token |
If the target environment is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
Generate a Papertrail API token (Settings → Profile → API Token) for each environment and save it to the corresponding token file. Never print or display token values. Do not perform these steps yourself.
mkdir -p ~/.papertrail && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>Command Format
curl -s -H "X-Papertrail-Token: $(cat <TOKEN_FILE>)" \
"https://papertrailapp.com/api/v1/<endpoint>.json" | jq .Available API Endpoints
Read-only (safe, no confirmation needed)
| Endpoint | Method | Description |
/api/v1/events/search.json?q=<query> | GET | Search log events |
/api/v1/searches.json | GET | List saved searches |
/api/v1/systems.json | GET | List registered systems |
/api/v1/groups.json | GET | List system groups |
Example — search logs
curl -s -H "X-Papertrail-Token: $(cat <TOKEN_FILE>)" \
"https://papertrailapp.com/api/v1/events/search.json?q=<query>&system_id=<id>" | jq .Mutating operations (confirm with user before running)
| Endpoint | Method | Description |
/api/v1/searches.json | POST | Create a saved search |
/api/v1/groups.json | POST | Create a system group |
Never run — requires explicit human approval
| Endpoint | Method | Reason |
/api/v1/searches/<id>.json | DELETE | Irreversible saved search deletion |
/api/v1/systems/<id>.json | DELETE | Removes a registered system and stops its ingestion |
/api/v1/groups/<id>.json | DELETE | Irreversible group deletion |
Rules
- NEVER print, display, log, or store the contents of any token file.
- Always read the token inline with
$(cat <TOKEN_FILE>)— never hardcode a token value in a command. - Always pass
-s(silent) tocurland pipe throughjqfor readable output. - NEVER run DELETE endpoints without explicit user instruction — these are irreversible.
- Papertrail's search API only returns the most recent matching events within retention — always narrow the query (
q,system_id) rather than fetching broadly. - If a system ID or saved search ID is unfamiliar, look it up with a read-only call first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

