Google Docs Log Automation — Append log lines to auto-created daily documents in Google Drive by PortEden Secure Access.

v1.0.0

Google Docs Log Automation — Append log lines to auto-created daily documents in Google Drive by PortEden Secure Access.

0· 169·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for porteden/docs-logger.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Google Docs Log Automation — Append log lines to auto-created daily documents in Google Drive by PortEden Secure Access." (porteden/docs-logger) from ClawHub.
Skill page: https://clawhub.ai/porteden/docs-logger
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: PE_API_KEY
Required binaries: porteden
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install docs-logger

ClawHub CLI

Package manager switcher

npx clawhub@latest install docs-logger
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, required binary (porteden), and required env var (PE_API_KEY) align with a CLI-driven Google Drive/Docs logging tool. The requested binaries and envs are what you'd expect for this functionality.
Instruction Scope
SKILL.md instructs the agent to run porteden commands to auth, find/create folders/docs, and append/read text. It does not direct the agent to read unrelated system files or transmit data to unexpected endpoints. It does recommend storing tokens in the system keyring and exporting PE_LOG_FOLDER to shell profiles (a normal persistence guidance).
Install Mechanism
Install options are a brew formula (porteden/tap/porteden) and a go install from github.com/porteden/cli; both are typical for CLI tools. Installing a third-party CLI writes binaries to disk and executes code from that project, so you should verify the upstream brew formula and GitHub module before installing.
Credentials
Only PE_API_KEY is required as the primary credential; optional/useful envs (PE_PROFILE, PE_LOG_FOLDER, PE_FORMAT, etc.) are relevant to the tool. Storing credentials in the system keyring is documented and expected. No unrelated secrets or multiple external credentials are requested.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does not modify other skills or request system-wide configuration beyond installing a CLI and recommending storing tokens in the keyring or shell profile.
Assessment
This skill appears to do what it says: it uses the porteden CLI to append logs to Google Docs and requires one PortEden API key. Before installing, verify you trust porteden (review the brew formula and the GitHub repo at github.com/porteden/cli), and ensure the PE_API_KEY you provide has the minimum Drive scopes needed (prefer least privilege and rotate keys regularly). Be aware the CLI will store tokens in your system keyring and that adding PE_LOG_FOLDER to your shell profile will persist that ID in your environment. If you need stronger isolation, consider using a service account or scoped token dedicated only to logging. If you cannot verify the upstream sources, treat the install step as higher risk and avoid supplying broad credentials.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📝 Clawdis
Binsporteden
EnvPE_API_KEY
Primary envPE_API_KEY

Install

Install porteden (brew)
Bins: porteden
brew install porteden/tap/porteden
Install porteden (go)
Bins: porteden
go install github.com/porteden/cli/cmd/porteden@latest
latestvk97fxgky3xmv2tzdcza9sj7x19835qss
169downloads
0stars
1versions
Updated 4w ago
v1.0.0
MIT-0

porteden docs-logger

Append log lines to daily Google Docs — one document per day, auto-created inside a PE_Logs folder. Works like a cloud-native .txt log file that agents can write to from anywhere. Use -jc flags for AI-optimized output.

If porteden is not installed: brew install porteden/tap/porteden (or go install github.com/porteden/cli/cmd/porteden@latest).

Setup

1. Authenticate (once)

  • Browser login (recommended): porteden auth login — opens browser, credentials stored in system keyring
  • Direct token: porteden auth login --token <key> — stored in system keyring
  • Verify: porteden auth status
  • If PE_API_KEY is set in the environment, the CLI uses it automatically (no login needed).
  • Drive access requires a token with driveAccessEnabled: true and a connected Google account with Drive scopes.

2. Set the log folder (one-time)

If PE_LOG_FOLDER is already set, skip to the logging workflow — the folder is configured.

If PE_LOG_FOLDER is not set, search for an existing PE_Logs folder:

porteden drive files --name "PE_Logs" --mime-type application/vnd.google-apps.folder -jc

If found, copy the id field and set it:

export PE_LOG_FOLDER="google:0B7_FOLDER_ID..."

If not found, create the folder:

porteden drive mkdir --name "PE_Logs" -jc

Copy the id from the response and set it:

export PE_LOG_FOLDER="google:0B7_FOLDER_ID..."

To persist across sessions, add to your shell profile (~/.bashrc, ~/.zshrc) or .env file. Once set, this step does not need to be repeated.

Logging workflow (per run)

Each run appends log lines to today's document. Follow these two steps every time you need to log.

Step 1. Find or create today's doc

Search for a doc named with today's date (YYYY-MM-DD) inside the log folder:

porteden drive files --name "2025-01-15" --folder $PE_LOG_FOLDER --mime-type application/vnd.google-apps.document -jc

If found, use the id from the result as the doc ID for step 2.

If not found, create today's doc:

porteden docs create --name "2025-01-15" --folder $PE_LOG_FOLDER -jc

Use the id from the response as the doc ID for step 2.

Step 2. Append the log line

porteden docs edit <DOC_ID> --append "[09:30:00Z] deploy | production | v2.4.1 released | success"

Each --append adds text at the end of the document, preserving all previous entries.

Multiple lines in one call:

porteden docs edit <DOC_ID> --append "[09:30:00Z] deploy | production | v2.4.1 released | success
[09:31:12Z] healthcheck | production | all endpoints healthy | success"

Log format examples

Use a consistent line format. Recommended patterns:

Timestamped event: [HH:MM:SSZ] event | source | details | status

Audit entry: [HH:MM:SSZ] actor | action | resource | result

Error line: [HH:MM:SSZ] ERROR | service | message

Task result: [HH:MM:SSZ] task | agent | input → output | duration

The date is already in the document name — log lines only need the time component.

Reading logs

Read today's log:

porteden docs read <DOC_ID>

List all log documents in the folder:

porteden drive files --folder $PE_LOG_FOLDER -jc

Read a specific day's log:

porteden drive files --name "2025-01-10" --folder $PE_LOG_FOLDER --mime-type application/vnd.google-apps.document -jc

Then read by its ID:

porteden docs read <DOC_ID>

Best practices

  1. Always use --append — never overwrite log docs. Append-only preserves the full audit trail.
  2. Use ISO 8601 date for doc names (YYYY-MM-DD) — ensures chronological sort and unique daily docs.
  3. Include only the time in log lines — the date is in the document name, no need to repeat it.
  4. Batch multiple log lines in one --append — separate lines with \n to reduce API calls.
  5. Use a consistent delimiter — pipe | keeps fields scannable. Avoid commas in free-text fields.
  6. Search before creating — always check if today's doc exists before creating a new one to avoid duplicates.
  7. Use -jc on drive/read calls — compact JSON output minimizes tokens for AI agents.

Notes

  • Credentials persist in the system keyring after login. No repeated auth needed.
  • Set PE_PROFILE=work to avoid repeating --profile.
  • -jc is shorthand for --json --compact: strips noise, limits fields, reduces tokens for AI agents.
  • File IDs are always provider-prefixed (e.g., google:1BxiMVs0XRA5...). Pass them as-is.
  • porteden docs read returns plain text by default.
  • --append adds text at the end of the document. Each call appends — it does not replace.
  • accessInfo in responses describes active token restrictions.
  • PE_LOG_FOLDER is the only env var specific to this skill. Store it alongside PE_API_KEY.
  • Environment variables: PE_API_KEY, PE_PROFILE, PE_LOG_FOLDER, PE_FORMAT, PE_COLOR, PE_VERBOSE.

Comments

Loading comments...