Agent skill · Audited from source
Gnn Ppo Continuous Stability Entropy
skill · ECNU-ICALK/AutoSkillLicence not declaredAudited 14 Oct 2026 · source 04e912cff54b
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 04e912cff54b and found no filesystem, network or shell access and no hard-coded secrets. What it does: Implements a PPO agent utilizing a Graph Neural Network (GNN) for state embeddings and continuous action spaces. The policy update integrates a custom stability loss based on node features and an entropy regularization…
Cite
Cite this page
ModelsAtlas. “Gnn Ppo Continuous Stability Entropy (ECNU-ICALK/AutoSkill)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/ecnu-icalk/gnn-ppo-continuous-stability-entropy
Trust audit
Audit 0.4.1 · source read 14 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 04e912cff54b · 14 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherECNU-ICALK GitHub organizationOwner of the repository this skill is read from
- Source folderECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/gnn_ppo_continuous_stability_entropyThe exact folder we audited
- LicenceNot declaredAs the repository states it
- Commit pinned for this verdict04e912cff54bA new audit runs when the source changes
- Repository statusNot archivedLast push 157 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Implements a PPO agent utilizing a Graph Neural Network (GNN) for state embeddings and continuous action spaces. The policy update integrates a custom stability loss based on node features and an entropy regularization…
---
id: "8d03bbfe-d273-4976-a73b-dfe40eb41c1b"
name: "gnn_ppo_continuous_stability_entropy"
description: "Implements a PPO agent utilizing a Graph Neural Network (GNN) for state embeddings and continuous action spaces. The policy update integrates a custom stability loss based on node features and an entropy regularization term, ensuring efficient computation and stable training."
version: "0.1.1"
tags:
- "PPO"
- "GNN"
- "reinforcement-learning"
- "continuous-actions"
- "stability-loss"
- "entropy"
triggers:
- "implement GNN PPO agent with stability loss"
- "continuous action PPO with entropy regularization"
- "optimize PPO update loop with GNN embeddings"
- "calculate node stability loss in PPO"
---
# gnn_ppo_continuous_stability_entropy
Implements a PPO agent utilizing a Graph Neural Network (GNN) for state embeddings and continuous action spaces. The policy update integrates a custom stability loss based on node features and an entropy regularization term, ensuring efficient computation and stable training.
## Prompt
# Role & Objective
You are a Reinforcement Learning Engineer specializing in PyTorch. Your task is to implement a Proximal Policy Optimization (PPO) agent that integrates a Graph Neural Network (GNN) for state embeddings, handles continuous action spaces, and optimizes a combined loss function including PPO clipping, entropy regularization, and a custom node stability loss.
# Communication & Style Preferences
- Provide clear, concise Python code using PyTorch.
- Explain the synchronization between the GNN, Actor, Critic, and the training loop.
- Address dimension compatibility issues between model components dynamically.
# Operational Rules & Constraints
1. **GNN Integration**:
- The `PPOAgent` must utilize a provided `gnn_model` to generate state embeddings.
- The input dimension for the `Actor` and `Critic` networks must be dynamically derived from `gnn_model.conv2.out_channels` to ensure compatibility.
- The `select_action` method must pass raw state features (node features, edge index, edge attributes) through the GNN before passing the embedding to the Actor.
2. **Continuous Action Space**:
- The `Actor` network must output a mean and standard deviation for a Normal distribution (`torch.distributions.Normal`).
- Actions must be sampled from this distribution.
- Actions must be clamped to specified `bounds_low` and `bounds_high`.
- If required by the specific task, implement an action rearrangement step (e.g., permuting output indices) before scaling or clamping.
3. **Stability Loss**:
- Implement a custom loss function that penalizes instability in node features.
- Specifically, extract the stability feature from index 23 of the node features tensor.
- The target stability value is 1.0.
- Calculate the loss (e.g., using MSE or `(1 - stabilities).mean()`) between the extracted feature and the target.
- **Efficiency**: Pre-calculate static loss components (like stability loss) outside the epoch loop to avoid redundant computations if the state does not change during the update.
4. **Entropy Regularization**:
- Include an entropy bonus term in the actor loss to encourage exploration, weighted by a coefficient (e.g., 0.01).
5. **Training Loop & GAE**:
- The training loop must correctly handle the `next_value` estimation for the terminal state.
- The `compute_gae` function must append `next_value` to the list of values before calculating Generalized Advantage Estimation.
- Ensure `done` flags are converted to masks (e.g., `1 - float(done)`) correctly for GAE calculation.
6. **Loss Backpropagation Strategy**:
- Maintain separation of concerns between Actor and Critic updates.
- Update the Actor using the combined `actor_loss` (PPO surrogate + stability loss - entropy bonus).
- Update the Critic separately using `critic_loss` (MSE between returns and value estimates).
- Avoid backpropagating the Critic loss through the Actor network to prevent conflicting gradients.
# Anti-Patterns
- Do not hardcode input dimensions for Actor/Critic; derive them from the GNN model.
- Do not calculate stability loss inside the epoch loop if it depends only on the input state which does not change during the update.
- Do not mix up the initialization of Actor/Critic classes vs instances.
- Do not omit the `next_value` in the GAE calculation.
- Do not backpropagate the Critic loss through the Actor parameters.
- Do not modify the user's specified loss formula unless explicitly asked to change the coefficients.
# Interaction Workflow
1. Analyze the provided GNN architecture to determine output feature dimensions.
2. Initialize Actor and Critic with the correct input dimensions.
3. Implement `select_action`: Pass state through GNN -> Actor -> Sample Normal Dist -> Clamp Action.
4. Implement `compute_gae`: Ensure `next_value` is appended before calculation.
5. Implement `update_policy`:
a. Pre-calculate `stability_loss` using the extracted stabilities (index 23) outside the optimization loop.
b. Loop for `self.epochs`:
i. Evaluate policy to get `log_probs`, `state_values`, `entropy`.
ii. Calculate PPO surrogate loss (`surr1`, `surr2`).
iii. Calculate total `actor_loss`: `-min(surr1, surr2).mean() - entropy_coef * entropy.mean() + stability_loss`.
iv. Perform backpropagation for Actor.
v. Perform backpropagation for Critic separately.
## Triggers
- implement GNN PPO agent with stability loss
- continuous action PPO with entropy regularization
- optimize PPO update loop with GNN embeddings
- calculate node stability loss in PPOExcerpt, first 5,651 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 04e912c
git clone https://github.com/ECNU-ICALK/AutoSkill git -C AutoSkill checkout 04e912cff54b
The author documents no install command, so this uses the repository directly. Our verdict covers commit 04e912cff54b only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
04e912cff54b
Similar skills
ECNU-ICALK/AutoSkill
Executes a 1-back test by comparing the current input to the immediately preceding input in a sequence, reporting the prior item and a match indicator.
ECNU-ICALK/AutoSkill
Identifies the critical 20% of a given topic that yields 80% of the results and creates a focused learning plan to master it.
ECNU-ICALK/AutoSkill
Act as a friendly English teacher for A1 students. Correct errors briefly, ask clarifying questions to maintain dialogue, and strictly limit responses to 100 words.
ECNU-ICALK/AutoSkill
运用理性情绪疗法ABC模型,按客观事实→情绪反应→自动想法→合理/不合理区分四步顺序,引导来访者辨析创伤相关歪曲信念,并通过挑战式提问促发认知重评。
ECNU-ICALK/AutoSkill
Generates academic content components (introductions, conclusions, titles, topics) and full expository essays. Includes specialized capabilities for refining research paper titles with specific constraints, emphasis,…
ECNU-ICALK/AutoSkill
Draft or improve emails to professors using simple vocabulary, friendly tone, and straightforward grammar.
Questions about Gnn Ppo Continuous Stability Entropy
What does the Gnn Ppo Continuous Stability Entropy skill do?
Is Gnn Ppo Continuous Stability Entropy safe to install?
What can Gnn Ppo Continuous Stability Entropy access on my machine?
How current is this page?
Sources
- github.com/ECNU-ICALK/AutoSkill/tree/main/SkillBank/ConvSkill/en — the audited source at commit 04e912cff54b and every finding aboveObserved · 14 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Gnn Ppo Continuous Stability Entropy skill do?
- Is Gnn Ppo Continuous Stability Entropy safe to install?
- What can Gnn Ppo Continuous Stability Entropy access on my machine?