forcedotcom/sf-skills / plugins/builder/agentforce-adlc/skills/agentforce-architecture-analyze
agentforce-architecture-analyze
VerifiedDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces).
scripts/sanitize.py
View on GitHub#!/usr/bin/env python3
"""Scrub dangerous characters from a string before splicing into the RESULT block.
Strips characters that would corrupt the `KEY=VALUE` line format parsers use to read
the RESULT block: backtick, dollar, double-quote, backslash, CR, tab, NUL, newline.
Used when interpolating user-controlled values (session_id, org_alias, sf CLI stderr
excerpts) into ERROR_DETAIL and other RESULT fields. Without scrubbing, a malicious
or malformed input could inject fake KEY=VALUE pairs that downstream consumers
would treat as authoritative.
Usage:
_safe=$(python3 "$SKILL/scripts/sanitize.py" "$raw_value")
Arguments:
argv[1] raw string (may be empty)
Output:
stdout scrubbed string (no trailing newline)
exit 0 always (even on empty input)
"""
import sys
BAD = set("`$\"\\\r\t\0\n")
def scrub(s: str) -> str:
return "".join(c for c in s if c not in BAD)
if __name__ == "__main__":
raw = sys.argv[1] if len(sys.argv) > 1 else ""
sys.stdout.write(scrub(raw))
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |