feat(ocp-admin): add network-policy-architect skill#146
Open
p-rog wants to merge 1 commit into
Open
Conversation
Two-tier NetworkPolicy design skill following NIST SP 800-207 Zero Trust principles. Uses openshift-administration MCP tools exclusively (no raw oc/kubectl CLI) for live cluster verification with dry-run policy application and health checks. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new network-policy-architect skill to the
ocp-adminpack for designing and validating Kubernetes NetworkPolicies following Zero Trust principles (NIST SP 800-207).Rationale
NetworkPolicy is the primary application-level microsegmentation mechanism in Kubernetes, yet designing correct policies is error-prone and rarely verified against live clusters. Common pitfalls include:
policy-grouplabels)"true"vstrue) causing policies to silently not renderThis skill addresses these gaps with a structured two-tier workflow — architecture analysis followed by live cluster verification — that produces a verified implementation plan, not just untested YAML.
The skill was developed alongside an article on OCP/Kubernetes network policy best practices ("Closing the Loop: From Network Policy Intent to Verified Reality") and incorporates real-world lessons learned from the Layered Zero Trust Validated Pattern (article is not published yet).
What's included
New file
ocp-admin/skills/network-policy-architect/SKILL.md— full skill definition (450 lines)Updated files
ocp-admin/AGENTS.md— intent routing entry + skill chaining + MCP server referenceocp-admin/README.md— skill section (Rh developer/troubleshooting #8), sample workflow, architecture treeocp-admin/.catalog/collection.yaml— skill entry, decision guide, sample workflow, keywordsocp-admin/.catalog/collection.json— mirror of YAML catalog changesSkill design
Two-tier workflow
MCP-first approach
All cluster operations use
openshift-administrationMCP server tools (pods_list,resources_list,resources_get,resources_create_or_update,resources_delete,pods_log). No rawocorkubectlCLI commands. This addresses theocCLI availability issue previously identified in MGMT-24450.Human-in-the-loop
Explicit user confirmation required before:
Key domain knowledge encoded
openshift-dnspolicy-group.network.openshift.io/ingressnamespace label| toStringfor boolean conditions inextraValueFilespattern frameworkskeycloak-network-policy) must not be duplicatedValidation results
cisco-ai-skill-scanner(static + behavioral + overlap)Test plan
make validatepasses (full suite: Tier 1 + Tier 2 + structure + compliance + MCP tools)validate_skill_doc_links.py— 0 errorsvalidate_docs_tree_links.py— 0 errorsvalidate_structure.py— all 7 packs passskill-scanner scan-all(static + behavioral + overlap) — SAFE, 0 findingsMade with Cursor