ape-write-pseudocode — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited ape-write-pseudocode (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Every pseudocode function has exactly three parts: input, output, and body. Use Python-like syntax: def for the function signature, a docstring-style comment block for input and output, and indented body lines.
def function_name(param1, param2, ...):
# input: <what each param represents>
# output: <what the function returns or produces>
<body>The body is the core of the pseudocode. Each line is a pythonic, non-functional call that names the operation and its operands -- not English prose. Invent clear, intuitive method or function names. The goal is code that reads like intent, not implementation.
object.verb(args) or verb(args) style -- never English sentences.Use if, elif, else, and loops sparingly and only when the branching or iteration is the point of the logic. Conditions are also written as code-like expressions, not prose.
if condition_call(args):
...
else:
...
for item in collection:
...
while not done():
...Each line should look like a call you would recognise but cannot actually run.
Good patterns:
nodes.filter_reachable_from(source)entries.sort_by(timestamp, order=ASC)graph.shortest_path(source)candidates.pick_highest_score()merge_sorted(left, right)Bad patterns:
"filter nodes by reachability from source" -- English sentence, not codedist[v] = dist[u] + weight(u, v) -- actual implementation codeinitialize a min-heap priority queue with (0, source) -- prose + detaillist.stream().filter(x -> x > 0).collect(...) -- real language APIGood:
def lsm_write(key, value):
# input: key and value to store
# output: acknowledgement that write is recorded
memtable.append(key, value)
if memtable.exceeds_threshold():
sstable = memtable.flush_to_disk()
memtable.clear()def lsm_read(key):
# input: key to look up
# output: value for key, or NOT_FOUND
if memtable.contains(key):
return memtable.get(key)
for sstable in sstables.newest_first():
if sstable.bloom_filter.might_contain(key):
value = sstable.search(key)
if value:
return value
return NOT_FOUNDdef lsm_compact(sstables):
# input: list of SSTables to merge
# output: single merged SSTable with duplicates resolved
cursors = sstables.open_cursors()
while cursors.any_remaining():
entry = cursors.pick_min_key()
if cursors.has_duplicates(entry.key):
entry = cursors.keep_newest(entry.key)
output.write(entry)
return output.finalise()Bad (do not do this):
def lsm_write(key, value):
append key-value pair to memtable # English sentence -- wrong
if memtable exceeds size threshold: # English condition -- wrong
flush memtable to a new SSTable # English sentence -- wrongdef lsm_write(key: str, value: bytes): # typed signature + real Python -- wrong
self.lock.acquire()
self.memtable[key] = value
if len(self.memtable) > self.threshold:
self.flush()
self.lock.release()object.verb(args) or verb(args)), not English sentences?If yes, the pseudocode is done.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.