Skip to content
Back to skills

Custom Codereview Guide

ASecurity

Repository-specific review guidance read by oh-code-review before every review of aimem: observed runtime contracts that settle otherwise speculative findings.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgoshellcode-reviewgitdocumentation

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add BlackVS/aimem --skill custom-codereview-guide --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Custom Codereview Guide?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Custom Codereview Guide
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blackvs-custom-codereview-guide/badge)](https://www.skillsdirectory.com/skills/blackvs-custom-codereview-guide)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: custom-codereview-guide
description: Repository-specific review guidance read by oh-code-review before every review of aimem: observed runtime contracts that settle otherwise speculative findings.
triggers:
- /oh-codereview
---

# Review guide for aimem

Read by `oh-code-review` before every review of this repository. Keep it short
and evidence-based; every entry names how it was established.

## Observed Runtime Contracts

Do not infer runtime behaviour from documentation or source alone. If the
reviewed route differs from a contract below, or the runtime has changed
since, request a focused probe instead of proposing speculative hardening.

| Contract | Runtime | Observed | Date · how |
| --- | --- | --- | --- |
| `Invoke-WebRequest` follows a redirect from https to http and downloads over http | Windows PowerShell 5.1 (5.1.26100, and the GitHub `windows-latest` runner) | the 302 to an http URL was followed and the http request made; `boot.ps1` therefore walks redirects itself and refuses a non-https hop | 2026-11-15 · a local https listener answering 302, and workflow runs 43704068123 and 43704265021 on a scratch branch |
| `Invoke-WebRequest` does **not** follow a redirect from https to http | PowerShell 7.6 on `windows-latest` | refused with an InvalidOperationException unless `-AllowInsecureRedirect` is given; https to https is followed | 2026-11-15 · runs 43704068123 and 43704265021 |
| A 3xx is returned to the caller with `-MaximumRedirection 0` | 5.1 and 7.6 | 5.1 returns it only with `-ErrorAction SilentlyContinue` (with `Stop` it throws); 7 only with `-SkipHttpErrorCheck` | 2026-11-15 · run 43704265021 |
| aimem reads a path lexically: it is made absolute and cleaned, then its links are resolved (`msgstore.Canonical`), for the writers of name bindings (`bind`, `unbind`) and for their readers (the binding search) alike. A spelling with `..` through a missing component, `missing/../sub`, names the cleaned directory `sub`, and the search for a binding starts there because the same command's write acts on it | Go's `filepath.Abs` and `EvalSymlinks`, on Linux (`golang:1.26`) and on Windows 11 | Linux refuses the raw spelling (`os.Stat` fails) while the cleaned path exists and resolves; Windows resolves the raw spelling itself | 2026-12-05 · a throwaway Go program on both platforms; pinned by `TestADotDotSpellingNamesTheCleanedDirectory` |
| An unsigned script run with `-ExecutionPolicy RemoteSigned -File` from a share | 5.1 and 7.6 on `windows-latest` | 5.1 refuses a share named by an address or a dotted host name; 7 runs the address and refuses the dotted name; an undotted name runs in both. A `Copy-Item` copy in a local folder runs in both and carries no Zone.Identifier, so the documented export form copies `boot.ps1` first | 2026-11-15 · runs 43703910712 and 43704504385 |

## Rejected hypotheses

- "PowerShell 7 downgrades a download to http on a redirect, so `boot.ps1`
  needs a PowerShell 7 specific guard" — disproved 2026-11-15 (row two
  above). The redirect walk in `boot.ps1` is for Windows PowerShell 5.1;
  under 7 it is harmless and 7's own guard stays in place.
- "A start directory spelled with `..` through a missing component does not
  resolve, so the binding search must read only its own binding" (external
  review of pull request 443, round 2): rejected 2026-12-05 (the path row
  above). Every names command cleans the path before it acts, the binding's
  writers included, so the search names the binding that holds for the
  existing directory the same command writes to. Following the kernel's
  reading of the raw spelling on Linux only would make the lookup and the
  write disagree there.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.