Skip to content
Back to skills

Mhc

ASecurity

Implements Manifold-Constrained Hyper-Connections (mHC) to solve residual connection issues using Doubly Stochastic Matrices.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
documentationpython

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill mhc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mhc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mhc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-mhc/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-mhc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mhc
description: Implements Manifold-Constrained Hyper-Connections (mHC) to solve residual connection issues using Doubly Stochastic Matrices.
---
# mHC Skill

Manifold-Constrained Hyper-Connections (mHC) uses Doubly Stochastic Matrices to improve Deep Learning stability.

## Contents

- [Examples](examples.md)
    - Full JAX implementation of `sinkhorn_knopp` and `mhc_layer_forward`.
- [Deep Theory](reference.md)
    - Motivation, stability proofs, and scalability arguments.

## Usage

Use this skill when implementing Deep Transformers (1000+ layers) where standard residual connections fail (Gradient Vanishing, Representation Collapse).

```python
# Quick Ref: Sinkhorn-Knopp (See examples.md for full context)
def sinkhorn_knopp(log_matrix, n_iters=20):
    M = jnp.exp(log_matrix)
    def body(i, m):
        m /= m.sum(axis=1, keepdims=True)
        m /= m.sum(axis=0, keepdims=True)
        return m
    return jax.lax.fori_loop(0, n_iters, body, M)
```

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.