pharaoh-req-from-code

Identify observable behaviors in a C++ source file and emit comp_req blocks.

24|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/useblocks/pharaoh --skill pharaoh-req-from-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pharaoh-req-from-code
Source: https://github.com/useblocks/pharaoh/tree/main/skills/pharaoh-req-from-code
Command: npx skills add https://github.com/useblocks/pharaoh --skill pharaoh-req-from-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Observers want to derive documented requirements from an existing code file by observing its observable behavior, reducing manual spec drafting.

Core Features & Use Cases

  • Reverse-engineering observable behaviors from a single C++ source file into comp_req directives.
  • Uses an optional Papyrus workspace to coordinate canonical terms and surface new names when needed.
  • Suitable for creating traceable requirements from legacy code or unfamiliar codebases.

Quick Start

Provide a single C++ source file to the skill and optionally a Papyrus workspace path to begin the analysis.

Frequently Asked Questions about pharaoh-req-from-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate traceable requirements from existing C++ source code?

To generate traceable requirements from C++ source code, you provide a single source file to reverse-engineer its observable behaviors into deterministic comp_req blocks. This process extracts what the code does without drafting architecture or plans.

What is reverse-engineering code into comp_req blocks for requirements traceability?

Reverse-engineering code into comp_req blocks is the process of analyzing a single C++ file to identify observable behaviors and emitting requirements directives. It produces deterministic, single-file-to-many-req outputs for legacy code documentation.

Do I need a Papyrus workspace to extract requirements from a C++ file?

You do not need a Papyrus workspace to extract requirements from a C++ file, as it is optional. Providing a Papyrus workspace path coordinates canonical terms and registers new concepts before naming them in the generated requirements.

Can I derive requirements for an entire C++ project architecture at once?

You cannot derive requirements for an entire C++ project architecture at once, as the analysis is strictly limited to a single source file. It produces single-file-to-many-req outputs and explicitly avoids drafting architecture or plans.

How do I document observable behaviors in unfamiliar C++ codebases?

To document observable behaviors in unfamiliar C++ codebases, you analyze individual source files to emit corresponding comp_req directives. This reverse-engineering workflow reduces manual spec drafting by focusing on deterministic, file-level behavior extraction.