djangojinja

使用 djLint 扫描 Django、Jinja、Nunjucks、Twig 和 HTML 模板中的缩进问题、格式错误的标签和样式偏差,并可选择将其重写为一致格式。适用于在审查或发布前清理和验证模板密集型仓库的代理使用,而非用于通用 Web 框架设置。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "djangojinja":https://skillpi.com/zh/skills/deepskill-ce48505a0caecdc9df56cea6bbe643fdb0244075f5ddbe8955820f3f66bde039。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/template-linting-auto-formatting-django-jinja-repositories。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 djLint 扫描 Django、Jinja、Nunjucks、Twig 和 HTML 模板中的缩进问题、格式错误的标签和样式偏差,并可选择将其重写为一致格式。适用于在审查或发布前清理和验证模板密集型仓库的代理使用,而非用于通用 Web 框架设置。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
使用 djLint 扫描 Django、Jinja、Nunjucks、Twig 和 HTML 模板中的缩进问题、格式错误的标签和样式偏差,然后可选择将其重写为一致的格式。这是用于需要在审查或发布之前清理和验证模板密集型仓库的代理,而不是用于通用 Web 框架设置。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: "Django 和 Jinja 仓库的模板校验和自动格式化"
slug: "template-linting-auto-formatting-django-jinja-repositories"
version: "1.0.0"
displayName: "Django 和 Jinja 仓库的模板校验和自动格式化"
summary: "使用 djLint 扫描 Django、Jinja、Nunjucks、Twig 和 HTML 模板中的缩进问题、格式错误的标签和样式偏差,然后可选择将其重写为一致的格式。这是用于需要在审查或发布之前清理和验证模板密集型仓库的代理,而不是用于通用 Web 框架设置。"
license: "MIT"
description: "使用 djLint 扫描 Django、Jinja、Nunjucks、Twig 和 HTML 模板中的缩进问题、格式错误的标签和样式偏差,然后可选择将其重写为一致的格式。这是用于需要在审查或发布之前清理和验证模板密集型仓库的代理,而不是用于通用 Web 框架设置。"
github_stars: 911
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 911
  npm_package: "djlint"
  npm_weekly_downloads: 343

Django 和 Jinja 仓库的模板校验和自动格式化

Uses djLint to scan Django, Jinja, Nunjucks, Twig, and HTML templates for indentation problems, malformed tags, and style drift, then optionally rewrites them into a consistent format. This is for agents that need to clean and validate template-heavy repos before review or release, not for general web framework setup.

Prerequisites

Python 3.9 or higher and djLint

Installation

Use the upstream install or setup path that matches your environment:

  • pip install djlint
  • npm i djlint

Requirements and caveats from upstream:

  • Once upon a time all the other programming languages had a formatter and linter. Css, javascript, python, the c suite, typescript, ruby, php, go, swift, and you know the others. The cool kids on the block.

  • Or with the npm experimental install - Note, this requires python and pip to be on your system path.

  • ⚠️ Help Needed! ⚠️ Good with python? djLint was an experimental project and is catching on with other devs. Help out with a rewrite of the formatter to improve speed and html style for edge cases. Contribute on...

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/djlint/djLint/HEAD/README.md

Documentation

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供模板校验和自动格式化功能,适用于 Django、Jinja 等模板密集型仓库的清理和验证
  • 属于明确场景的通用工具,具有广泛受众的实用能力
触发精准95/100

亮点

  • description 中明确描述了使用场景、适用框架以及目标用户
  • 触发词精准完整,覆盖多种变体,边界清晰
结构规范90/100

亮点

  • 包含清晰的 Phase/步骤(Prerequisites、Installation、Documentation)
  • 有明确的出口条件,frontmatter 完整,单文件未超过 500 行
执行可靠88/100

亮点

  • 工具来源明确(djLint),参数正确
  • 覆盖了主要异常,不可逆操作有确认机制
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 34, 35 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • djlint.com
  • github.com
  • raw.githubusercontent.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。