Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Q7022 Stock Rotation

ASecurity

Determine the issue order and lot separation a limited-shelf-life stock holding owes under ECSS-Q-ST-70-22: queue the issuable lots by receipt date with a deterministic tie-break, name where receipt order and expiry order disagree so a later lot expiring sooner is not stranded, raise a finding per bin holding mixed materials, commingled lot numbers without a divider, or quarantined stock beside issuable stock, and grade each actual pick against the queue. Use when stock is binned, a picker qu...

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentspythongo

Works with

claude code

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add ashfordeOU/aero-agent-skills --skill q7022-stock-rotation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Q7022 Stock Rotation?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Q7022 Stock Rotation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashfordeou-q7022-stock-rotation/badge)](https://www.skillsdirectory.com/skills/ashfordeou-q7022-stock-rotation)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: q7022-stock-rotation
description: "Determine the issue order and lot separation a limited-shelf-life stock holding owes under ECSS-Q-ST-70-22: queue the issuable lots by receipt date with a deterministic tie-break, name where receipt order and expiry order disagree so a later lot expiring sooner is not stranded, raise a finding per bin holding mixed materials, commingled lot numbers without a divider, or quarantined stock beside issuable stock, and grade each actual pick against the queue. Use when stock is binned, a picker questions a lot, or a store is audited. Trigger: ecss, q-st-70-22, shelf-life-stock-rotation, first-in-first-out-issue-order, shelf-life-lot-separation, shelf-life-bin-commingling, out-of-rotation-pick."
license: Apache-2.0
compliance: STANDARDS-REF
standards:
  - id: ecss
    reference-only: true
gated: false
domain: space-systems
pack: space-systems
compatibility: "agentskills.io SKILL.md; any SKILL.md host (Claude Code, Hermes, OpenClaw)"
metadata:
  domain: space-systems
  subdomain: ecss
  tags: [ecss, q-st-70-22-limited-shelf-life-materials, q-st-70-22, q7022-stock-rotation, shelf-life-stock-rotation, first-in-first-out-issue-order, shelf-life-lot-separation, shelf-life-bin-commingling, out-of-rotation-pick]
  version: 0.1.0
  author: Aero Agent Skills
---

# ECSS Limited Shelf Life — Stock Rotation and Lot Separation (space-systems/ecss/q7022-stock-rotation)

Use when the task is the stock-control clause of ECSS-Q-ST-70-22: which lot the
store issues next, and whether the way the lots are physically held lets the
wrong one be picked.

## Domain quick reference

- Rotation is an ordering, and an ordering needs a full key. Receipt date alone
  leaves ties, and a tie resolved differently by two people is two different
  queues. Expiry, then lot number, then identity finish the key so the sequence
  is reproducible.
- First-in-first-out and first-expiry-first-out are not the same queue. A lot
  received later can carry the earlier expiry — a short-dated delivery, or a
  lot already part-aged at the supplier — and a receipt-ordered queue strands
  it until it expires on the shelf. The disagreement is worth naming even when
  the declared policy is receipt order.
- Separation is a property of the bin, not of the lot. Two lot numbers of one
  material in one bin are commingled unless a declared divider keeps them
  apart, and two materials in one bin are a finding regardless. The cost is a
  mis-pick that no paperwork afterwards can detect.
- Quarantined stock beside issuable stock is the sharpest version of that
  failure: the lot most likely to be picked by mistake is the one that has
  already been judged unfit.
- A pick is graded against the queue for its own material, not the whole store.
  Passing over two older lots of the same material is the finding; passing over
  an older lot of something else is not.

## Workflow

1. Validate every stock record: identity, material, lot number and bin present,
   receipt and expiry parsable and in order, availability from the known set,
   quantity a non-negative integer. Reject duplicate stock identities.
2. Build the issuable pool: availability issuable and quantity above zero,
   optionally narrowed to one material.
3. Sort the pool under the declared policy with the full tie-break key, and
   report the sequence.
4. Compare the receipt-ordered head with the expiry-ordered head per material
   and raise a rotation conflict naming both lots and their dates.
5. Group the holding by bin and raise separation findings: mixed materials,
   commingled lot numbers with no divider, quarantine not segregated.
6. Grade each actual pick: its position in its material's queue, and every
   older lot passed over. A pick of non-issuable stock fails on its own.
7. Close with the compliance rate and a disposition, with separation findings
   and out-of-rotation picks both fatal and a rotation conflict advisory.

## Pitfalls

- Sorting on receipt date alone. The ties are where two audits of the same
  store produce two different answers.
- Treating a first-expiry conflict as a rule violation. The declared policy
  still governs the pick; the conflict is a stranding risk to be flagged and
  dispositioned, not an automatic non-compliance.
- Grading separation from the stock list rather than the bin map. Lots can be
  perfectly recorded and still be sitting in one open tray.
- Accepting a divider that only one of the commingled lots declares. The
  divider is a property of the arrangement, so every lot sharing the bin has to
  carry it.
- Grading a pick against the whole store's queue. Rotation is per material;
  mixing materials into one sequence invents violations and hides real ones.
- Letting a zero-quantity or already-issued record stay in the queue. It will
  be offered as the next pick and the picker will go to the next real lot,
  quietly out of rotation.

## Behavior contract (gate 3)

The record validation, full-key ordering under both policies, conflict
detection, per-bin separation findings, pick grading against the per-material
queue and the disposition roll-up are exercised by the gate 3 contract test:
scripts/test_q7022_stock_rotation.py against
scripts/q7022_stock_rotation_logic.py (stdlib unittest, offline). Run:
python3 scripts/test_q7022_stock_rotation.py

## Compliance

- ECSS standards are freely downloadable (ESA); cite the source and
  paraphrase per standards-map.yaml.
- compliance: STANDARDS-REF, gated: false.

Attribution

ashfordeOUashfordeOU
View sourceMore from ashfordeOU →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →