The Knitting Charm is the Harry Potter Lexicon's label for the charm that "enchants knitting needles to knit." Its one book user is Hermione Granger: the Lexicon records that she "bewitched knitting needles to knit elf hats" in Order of the Phoenix, chapter 17, as part of her house-elf campaign, and quotes her explaining the hats in chapter 13: "They're hats for house-elves," made over the summer, because "I'm a really slow knitter without magic." The charm animates the needles rather than improving the knitter, which is the whole point for Hermione's output. No incantation is recorded for it in the sources reviewed, and no use in Deathly Hallows could be verified: the documented passages sit in Order of the Phoenix, chapters 13 and 17.
The documented effect is narrow: needles, once enchanted, knit on their own. Hermione's chapter 13 remark that she is "a really slow knitter without magic" but should manage more now she is back at school shows the charm replacing handwork rather than supervising it — the point of enchanting the needles was output no slow human knitter could reach by hand. Beyond that functional sentence, the sources give no incantation, wand movement, duration, or limit on how long enchanted needles keep working, and no scene shows the charm failing or being undone.
The Lexicon files the entry under charms and household magic, which places it beside the registry's other domestic spells rather than among combat or defensive magic. One cross-medium note comes from the Lexicon itself: the film of Chamber of Secrets shows knitting needles working by themselves at the Burrow, which the Lexicon reads as implying Molly Weasley uses the same charm for her hand-knitted Christmas jumpers. That is an inference from a film image, not a stated use, and this page keeps it marked as such. The charm should also not be stretched to other household spells: the Cleaning Charm, the Washing Up Spell, and the Self-Stirring Charm each animate a different task and keep their own entries.
The charm's story is Hermione's elf campaign in Order of the Phoenix. Knitting hats for house-elves to pick up was her tactic for freeing them, the work of the Society for the Promotion of Elvish Welfare, and the Lexicon ties the enchanted needles directly to that aim. The logic behind the hats is documented on the official encyclopedia page for Dobby: he "was freed from his cruel wizarding family with a gratefully received dirty sock," and lists collecting socks among his interests — clothing, in the series' lore, is what sets a house-elf free, which is why a stock of knitted hats was worth enchanting needles over.
The campaign's subjects, the House Elves of Hogwarts and the House-elf species at large, have their own entries, as does the Gryffindor Common Room in the tower where Hermione's house's elves worked. The sources reviewed stop at the hats themselves: they do not record how many were knitted, what became of them, or any later use of the charm. The Spellcraft & Incantations Overview indexes the wider spell directory, of which this domestic charm is one small, well-documented corner.