name: linux-research
description: Authoritative technical research engine for Linux systems engineering. Conducts evidence-based investigations across kernel documentation, lore.kernel.org mailing lists, systemd manuals, Arch Wiki, POSIX specifications, and upstream git repositories. Use when the user asks how a Linux subsystem works, whether an API is deprecated, asks to investigate a regression or bug, or when an engineering decision requires verified technical proof.
license: Apache-2.0
compatibility: Requires Linux environment, network access or local kernel/system documentation.
metadata:
author: Eshan Roy
version: "0.1.0"
claude_context: "fork"
claude_agent: "general"
Linux Research: Evidence-Based Engineering Investigation
The linux-research skill enforces the core philosophy: Research before implementation. Evidence before assumptions. Verification before completion.
Ordinary AI agents frequently hallucinate obsolete APIs, quote unverified forum snippets, or make premature code changes. This skill replaces guesswork with a systematic, 10-step investigation workflow grounded in official upstream documentation and source repositories.
1. The Investigation Workflow
When activated, execute these steps in order:
flowchart TD
S1["1. Deconstruct Task\n(Identify core question & subsystems)"]
S2["2. Establish Version Context\n(Kernel LTS/mainline, systemd, glibc)"]
S3["3. Query Tier 1/2 Sources\n(kernel.org, freedesktop.org, POSIX)"]
S4["4. Inspect Git History / Lore\n(lore.kernel.org, git log -S)"]
S5["5. Trace Root Cause\n(Isolate defect boundary)"]
S6["6. Evaluate Alternatives\n(Compare trade-offs of >=2 solutions)"]
S7["7. Classify Confidence\n(Verified, Strongly Supported, Tentative, Unknown)"]
S8["8. Generate Research Report\n(Use templates/research-report.md)"]
S1 --> S2 --> S3 --> S4 --> S5 --> S6 --> S7 --> S8
Step 1: Deconstruct the Problem
- Identify the affected Linux layers: hardware interface, kernel driver, core kernel, init system (
systemd), C library (glibc), or desktop/display server.
- Formulate precise, searchable technical questions (e.g., "What replaced
init_timer() in Linux 4.14?", "Does ProtectSystem=strict make /etc read-only?").
Step 2: Establish Version Context
- Probe or verify the active version boundary using
linux-environment or provided user context.
- Never apply advice written for an older kernel (e.g., 4.x/5.x) to a modern 6.x kernel without verifying whether APIs have been deprecated or removed. See ../../references/version-awareness.md.
Step 3: Query Authoritative Sources
- Query sources strictly adhering to the 7-tier authority hierarchy in references/upstream-sources.md and ../../references/source-authority.md.
- Search upstream documentation (
docs.kernel.org, freedesktop.org/software/systemd/man/, man7.org).
- Disqualification Rule: Never treat search-engine snippets, blog posts, or StackOverflow comments as authoritative proof.
Step 4: Upstream Code & Git History Inspection
- When documentation is silent or ambiguous, inspect the source code directly.
- Use
git log -S and git log -p to understand why an API or configuration directive was changed.
- For kernel regressions, search
lore.kernel.org archives for public-inbox commit discussions.
Step 5: Root-Cause Analysis
- Distinguish between symptoms and root causes.
- Do not propose invasive code refactors when the problem is an environmental misconfiguration, permission defect, or missing build dependency.
Step 6: Evaluate Technical Alternatives
- Formulate at least two alternative approaches to solve the problem.
- Document trade-offs (performance, maintainability, backward compatibility, security) in an alternatives table.
Step 7: Assess Evidence Confidence
- Categorize every finding according to the 4 confidence levels defined in references/confidence-levels.md:
- Verified: Confirmed in source code, formal standard, or reproducible test.
- Strongly Supported: Documented in official upstream manual or maintainer notes.
- Tentative: Inferred from secondary patterns; requires testing.
- Unknown: Insufficient evidence; state the limitation honestly.
Step 8: Produce Structured Output
- For substantive investigations, produce a research report using templates/research-report.md.
- For quick technical answers, output an evidence card using templates/evidence-card.md.
2. Proportionate Research Principle
Match the research depth to the operational risk of the task:
- Low Risk (Configuration / Minor API lookup): Targeted query against Tier 1 man pages or documentation; output a concise evidence card.
- Medium Risk (Service hardening, packaging, IPC): Query upstream manuals, verify target systemd/distro version, check for deprecations, provide alternatives table.
- High Risk (Kernel patch, driver concurrency, bootloader, memory corruption): Complete 10-step protocol, upstream git commit inspection, lore.kernel.org regression check, full research report with rollback commands.
1---2name: linux-research3description: Authoritative technical research engine for Linux systems engineering. Conducts evidence-based investigations across kernel documentation, lore.kernel.org maili4---5---6name: linux-research7description: Authoritative technical research engine for Linux systems engineering. Conducts evidence-based investigations across kernel documentation, lore.kernel.org mailing lists, systemd manuals, Arch Wiki, POSIX specifications, and upstream git repositories. Use when the user asks how a Linux subsystem works, whether an API is deprecated, asks to investigate a regression or bug, or when an engineering decision requires verified technical proof.8license: Apache-2.09compatibility: Requires Linux environment, network access or local kernel/system documentation.10metadata:11 author: Eshan Roy12 version: "0.1.0"13 claude_context: "fork"14 claude_agent: "general"15---1617# Linux Research: Evidence-Based Engineering Investigation1819The `linux-research` skill enforces the core philosophy: **Research before implementation. Evidence before assumptions. Verification before completion.**2021Ordinary AI agents frequently hallucinate obsolete APIs, quote unverified forum snippets, or make premature code changes. This skill replaces guesswork with a systematic, 10-step investigation workflow grounded in official upstream documentation and source repositories.2223---2425## 1. The Investigation Workflow2627When activated, execute these steps in order:2829```mermaid30flowchart TD31 S1["1. Deconstruct Task\n(Identify core question & subsystems)"]32 S2["2. Establish Version Context\n(Kernel LTS/mainline, systemd, glibc)"]33 S3["3. Query Tier 1/2 Sources\n(kernel.org, freedesktop.org, POSIX)"]34 S4["4. Inspect Git History / Lore\n(lore.kernel.org, git log -S)"]35 S5["5. Trace Root Cause\n(Isolate defect boundary)"]36 S6["6. Evaluate Alternatives\n(Compare trade-offs of >=2 solutions)"]37 S7["7. Classify Confidence\n(Verified, Strongly Supported, Tentative, Unknown)"]38 S8["8. Generate Research Report\n(Use templates/research-report.md)"]3940 S1 --> S2 --> S3 --> S4 --> S5 --> S6 --> S7 --> S841```4243### Step 1: Deconstruct the Problem44- Identify the affected Linux layers: hardware interface, kernel driver, core kernel, init system (`systemd`), C library (`glibc`), or desktop/display server.45- Formulate precise, searchable technical questions (e.g., "What replaced `init_timer()` in Linux 4.14?", "Does `ProtectSystem=strict` make `/etc` read-only?").4647### Step 2: Establish Version Context48- Probe or verify the active version boundary using `linux-environment` or provided user context.49- Never apply advice written for an older kernel (e.g., 4.x/5.x) to a modern 6.x kernel without verifying whether APIs have been deprecated or removed. See [../../references/version-awareness.md](../../references/version-awareness.md).5051### Step 3: Query Authoritative Sources52- Query sources strictly adhering to the 7-tier authority hierarchy in [references/upstream-sources.md](references/upstream-sources.md) and [../../references/source-authority.md](../../references/source-authority.md).53- Search upstream documentation (`docs.kernel.org`, `freedesktop.org/software/systemd/man/`, `man7.org`).54- **Disqualification Rule**: Never treat search-engine snippets, blog posts, or StackOverflow comments as authoritative proof.5556### Step 4: Upstream Code & Git History Inspection57- When documentation is silent or ambiguous, inspect the source code directly.58- Use `git log -S` and `git log -p` to understand *why* an API or configuration directive was changed.59- For kernel regressions, search `lore.kernel.org` archives for public-inbox commit discussions.6061### Step 5: Root-Cause Analysis62- Distinguish between symptoms and root causes.63- Do not propose invasive code refactors when the problem is an environmental misconfiguration, permission defect, or missing build dependency.6465### Step 6: Evaluate Technical Alternatives66- Formulate at least two alternative approaches to solve the problem.67- Document trade-offs (performance, maintainability, backward compatibility, security) in an alternatives table.6869### Step 7: Assess Evidence Confidence70- Categorize every finding according to the 4 confidence levels defined in [references/confidence-levels.md](references/confidence-levels.md):71 - **Verified**: Confirmed in source code, formal standard, or reproducible test.72 - **Strongly Supported**: Documented in official upstream manual or maintainer notes.73 - **Tentative**: Inferred from secondary patterns; requires testing.74 - **Unknown**: Insufficient evidence; state the limitation honestly.7576### Step 8: Produce Structured Output77- For substantive investigations, produce a research report using [templates/research-report.md](templates/research-report.md).78- For quick technical answers, output an evidence card using [templates/evidence-card.md](templates/evidence-card.md).7980---8182## 2. Proportionate Research Principle8384Match the research depth to the operational risk of the task:85- **Low Risk (Configuration / Minor API lookup)**: Targeted query against Tier 1 man pages or documentation; output a concise evidence card.86- **Medium Risk (Service hardening, packaging, IPC)**: Query upstream manuals, verify target systemd/distro version, check for deprecations, provide alternatives table.87- **High Risk (Kernel patch, driver concurrency, bootloader, memory corruption)**: Complete 10-step protocol, upstream git commit inspection, lore.kernel.org regression check, full research report with rollback commands.